react/packages
OGURA Daiki 4de99b3ca6
fix getSnapshot warning when a selector returns NaN (#23333)
* fix getSnapshot warning when a selector returns NaN

useSyncExternalStoreWithSelector delegate a selector as
getSnapshot of useSyncExternalStore.

* Fiber's use sync external store has a same issue

* Small nits

We use Object.is to check whether the snapshot value has been updated,
so we should also use it to check whether the value is cached.

Co-authored-by: Andrew Clark <git@andrewclark.io>
2022-02-21 01:07:41 -05:00
..
create-subscription Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
dom-event-testing-library Revise useFocus/useFocusWithin (#19310) 2020-07-10 17:23:00 +01:00
eslint-plugin-react-hooks Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
jest-mock-scheduler Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
jest-react Switch to client rendering if root receives update (#23309) 2022-02-16 13:15:25 -05:00
react change ReactBatchConfig.transition 2022-02-17 13:13:27 -08:00
react-art Resolve default onRecoverableError at root init (#23264) 2022-02-10 07:59:10 -08:00
react-cache Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
react-client [RFC] Codemod invariant -> throw new Error (#22435) 2021-09-30 12:01:28 -07:00
react-debug-tools Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
react-devtools React DevTools 4.22.1 -> 4.23.0 2022-01-24 09:29:18 -05:00
react-devtools-core Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
react-devtools-extensions React DevTools 4.22.1 -> 4.23.0 2022-01-24 09:29:18 -05:00
react-devtools-inline Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
react-devtools-shared Gracefully handle empty "xstyle" prop values (Part 2) (#23279) 2022-02-11 14:36:36 -05:00
react-devtools-shell Use ReactDOM Test Selector API in DevTools e2e tests (#22978) 2021-12-21 11:58:04 -05:00
react-devtools-timeline DevTools: Timeline profiler refactor 2022-01-28 13:09:28 -05:00
react-dom Land skipUnmountedBoundaries experiment (#23322) 2022-02-17 21:43:25 -05:00
react-fetch Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
react-fs Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
react-interactions Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
react-is Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
react-native-renderer [Devtools][Transition Tracing] Add Transition callbacks to createRoot (#23276) 2022-02-11 10:15:10 -08:00
react-noop-renderer [Devtools][Transition Tracing] Add Transition callbacks to createRoot (#23276) 2022-02-11 10:15:10 -08:00
react-pg Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
react-reconciler fix getSnapshot warning when a selector returns NaN (#23333) 2022-02-21 01:07:41 -05:00
react-refresh Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
react-server Add onErrorShell Callback (#23247) 2022-02-08 22:38:14 -05:00
react-server-dom-relay Move SuspenseList to experimental channel (#22765) 2021-11-15 10:12:56 -08:00
react-server-dom-webpack Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
react-server-native-relay [Fizz/Flight] Pass in Destination lazily to startFlowing instead of in createRequest (#22449) 2021-09-28 15:32:09 -07:00
react-suspense-test-utils Remove experimental useOpaqueIdentifier API (#22672) 2021-11-01 15:02:39 -07:00
react-test-renderer [Devtools][Transition Tracing] Add Transition callbacks to createRoot (#23276) 2022-02-11 10:15:10 -08:00
scheduler Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
shared Enable enableCache on Test Renderer native (#23314) 2022-02-18 10:44:10 -08:00
use-subscription Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
use-sync-external-store fix getSnapshot warning when a selector returns NaN (#23333) 2022-02-21 01:07:41 -05:00