Chore: Replace `useSubscription` with `useSyncExternalStore` (#25909)
<!-- This is a pull request template, you do not need to uncomment or remove the comments, they won't show up in the PR text. --> <!-- Your Pull Request name should start with one of the following tags [NEW] For new features [IMPROVE] For an improvement (performance or little improvements) in existing features [FIX] For bug fixes that affect the end-user [BREAK] For pull requests including breaking changes Chore: For small tasks Doc: For documentation --> <!-- Checklist!!! If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code. - I have read the Contributing Guide - https://github.com/RocketChat/Rocket.Chat/blob/develop/.github/CONTRIBUTING.md#contributing-to-rocketchat doc - I have signed the CLA - https://cla-assistant.io/RocketChat/Rocket.Chat - Lint and unit tests pass locally with my changes - I have added tests that prove my fix is effective or that my feature works (if applicable) - I have added necessary documentation (if applicable) - Any dependent changes have been merged and published in downstream modules --> ## Proposed changes (including videos or screenshots) <!-- CHANGELOG --> <!-- Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue below. This description will appear in the release notes if we accept the contribution. --> <!-- END CHANGELOG --> ## Issue(s) <!-- Link the issues being closed by or related to this PR. For example, you can use #594 if this PR closes issue number 594 --> ## Steps to test or reproduce <!-- Mention how you would reproduce the bug if not mentioned on the issue page already. Also mention which screens are going to have the changes if applicable --> ## Further comments <!-- If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc... -->
Showing
- apps/meteor/client/components/Header/Header.stories.tsx 5 additions, 8 deletionsapps/meteor/client/components/Header/Header.stories.tsx
- apps/meteor/client/components/Omnichannel/Tags.tsx 2 additions, 3 deletionsapps/meteor/client/components/Omnichannel/Tags.tsx
- apps/meteor/client/components/RoomIcon/OmnichannelRoomIcon/context/OmnichannelRoomIconContext.tsx 8 additions, 13 deletions...mnichannelRoomIcon/context/OmnichannelRoomIconContext.tsx
- apps/meteor/client/components/RoomIcon/OmnichannelRoomIcon/provider/OmnichannelRoomIconProvider.tsx 20 additions, 12 deletions...ichannelRoomIcon/provider/OmnichannelRoomIconProvider.tsx
- apps/meteor/client/contexts/CallContext.ts 11 additions, 14 deletionsapps/meteor/client/contexts/CallContext.ts
- apps/meteor/client/hooks/usePresence.ts 12 additions, 13 deletionsapps/meteor/client/hooks/usePresence.ts
- apps/meteor/client/hooks/useReactiveValue.ts 8 additions, 8 deletionsapps/meteor/client/hooks/useReactiveValue.ts
- apps/meteor/client/hooks/useUserData.ts 12 additions, 13 deletionsapps/meteor/client/hooks/useUserData.ts
- apps/meteor/client/lib/RoomManager.ts 17 additions, 27 deletionsapps/meteor/client/lib/RoomManager.ts
- apps/meteor/client/lib/appLayout.ts 3 additions, 4 deletionsapps/meteor/client/lib/appLayout.ts
- apps/meteor/client/lib/banners.ts 4 additions, 5 deletionsapps/meteor/client/lib/banners.ts
- apps/meteor/client/lib/createSidebarItems.ts 11 additions, 11 deletionsapps/meteor/client/lib/createSidebarItems.ts
- apps/meteor/client/lib/createValueSubscription.ts 0 additions, 22 deletionsapps/meteor/client/lib/createValueSubscription.ts
- apps/meteor/client/lib/portals/blazePortals.ts 8 additions, 4 deletionsapps/meteor/client/lib/portals/blazePortals.ts
- apps/meteor/client/lib/portals/portalsSubscription.ts 8 additions, 4 deletionsapps/meteor/client/lib/portals/portalsSubscription.ts
- apps/meteor/client/providers/RouterProvider.tsx 5 additions, 6 deletionsapps/meteor/client/providers/RouterProvider.tsx
- apps/meteor/client/providers/createReactiveSubscriptionFactory.ts 7 additions, 8 deletions...eor/client/providers/createReactiveSubscriptionFactory.ts
- apps/meteor/client/sidebar/Sidebar.stories.tsx 9 additions, 24 deletionsapps/meteor/client/sidebar/Sidebar.stories.tsx
- apps/meteor/client/views/account/AccountSidebar.tsx 3 additions, 3 deletionsapps/meteor/client/views/account/AccountSidebar.tsx
- apps/meteor/client/views/account/index.ts 1 addition, 1 deletionapps/meteor/client/views/account/index.ts
Loading