react/packages
Andrew Clark c1f5884ffe
Add missing null checks to OffscreenInstance code (#24846)
`stateNode` is any-typed, so when reading from `stateNode` we should always cast
it to the specific type for that type of work. I noticed a place in the commit
phase where OffscreenInstance wasn't being cast. When I added the type
assertion, it exposed some type errors where nullable values were being accessed
without first being refined.

I added the required null checks without verifying the logic of the existing
code. If the existing logic was correct, then the extra null checks won't have
any affect on the behavior, because all they do is refine from a nullable type
to a non-nullable type in places where the type was assumed to already be
non-nullable. But the result looks a bit fishy to me, so I also left behind some
TODOs to follow up and verify it's correct.
2022-07-05 11:40:44 -04:00
..
dom-event-testing-library Revise useFocus/useFocusWithin (#19310) 2020-07-10 17:23:00 +01:00
eslint-plugin-react-hooks Extra space (#24612) 2022-06-17 10:43:17 -07:00
jest-mock-scheduler Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
jest-react bump versions for next release (#24725) 2022-06-14 13:24:00 -07:00
react Fix enableTransitionTracing flag (#24801) 2022-06-28 13:09:59 -04:00
react-art bump versions for next release (#24725) 2022-06-14 13:24:00 -07:00
react-cache Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
react-client [Flight] Implement useId hook (#24172) 2022-05-31 14:53:32 -07:00
react-debug-tools [DevTools] fix useDeferredValue to match reconciler change (#24742) 2022-06-17 14:43:10 -04:00
react-devtools React DevTools 4.24.6 -> 4.24.7 (#24646) 2022-05-31 16:16:07 -04:00
react-devtools-core React DevTools 4.24.6 -> 4.24.7 (#24646) 2022-05-31 16:16:07 -04:00
react-devtools-extensions [DevTools] Add column number to viewSourceLineFunction (#24814) 2022-06-29 10:38:27 -07:00
react-devtools-inline Add snapshot testing on e2e test failure (#24672) 2022-06-06 10:36:58 -07:00
react-devtools-shared [DevTools] Resign Timeline Profiler Sidebar (#24816) 2022-06-29 17:54:06 -07:00
react-devtools-shell [DevTools] devtools-test-shell Regression App fixes (#24644) 2022-05-31 16:13:41 -07:00
react-devtools-timeline [DevTools] Resign Timeline Profiler Sidebar (#24816) 2022-06-29 17:54:06 -07:00
react-dom fix hydration warning suppression in text comparisons (#24784) 2022-06-26 12:22:10 -07: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 Move createRoot/hydrateRoot to react-dom/client (#23385) 2022-03-01 00:13:28 -05:00
react-is bump versions for next release (#24725) 2022-06-14 13:24:00 -07:00
react-native-renderer support errorInfo in onRecoverableError (#24591) 2022-06-06 14:23:32 -07:00
react-noop-renderer Fix enableTransitionTracing flag (#24801) 2022-06-28 13:09:59 -04:00
react-pg Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
react-reconciler Add missing null checks to OffscreenInstance code (#24846) 2022-07-05 11:40:44 -04:00
react-refresh bump versions for next release (#24725) 2022-06-14 13:24:00 -07:00
react-server Abort Flight (#24754) 2022-06-19 11:05:41 -04:00
react-server-dom-relay Abort Flight (#24754) 2022-06-19 11:05:41 -04:00
react-server-dom-webpack Abort Flight (#24754) 2022-06-19 11:05:41 -04:00
react-server-native-relay Abort Flight (#24754) 2022-06-19 11:05:41 -04:00
react-suspense-test-utils Remove experimental useOpaqueIdentifier API (#22672) 2021-11-01 15:02:39 -07:00
react-test-renderer bump versions for next release (#24725) 2022-06-14 13:24:00 -07:00
scheduler bump versions for next release (#24725) 2022-06-14 13:24:00 -07:00
shared Fix enableTransitionTracing flag (#24801) 2022-06-28 13:09:59 -04:00
use-subscription bump versions for next release (#24725) 2022-06-14 13:24:00 -07:00
use-sync-external-store bump versions for next release (#24725) 2022-06-14 13:24:00 -07:00