Open chrismiddle10 opened 4 days ago
This error was occurring for me when I was utilizing startTransition
exported directly from react
to wrap my Suspense transitions. When I started using the useTransition
hook and the startTransition
created from it, I no longer saw this.
I was able to reproduce this issue with swr
library, swr internally uses startTransition
, when I commented the usage I didn't get the error that said TypeError: Cannot read property 'add' of undefined
.
https://github.com/vercel/swr/tree/main/src/mutation
https://snack.expo.dev/@raajnadar/swr-error-in-expo-sdk-52
The issue might be here as per @jnleonard3
I quickly tested and found the above approach works
Description
Thus far I have been able to track down the issue to this file and line of code: react-native/Libraries/Renderer/implementations/ReactFabric-dev.js
I apologize that I do not have a reproducible example for you. Everything does seem to operate correctly if I simply wrap the offending line in an empty try-catch.
Steps to reproduce
n/a
React Native Version
0.76.2
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/chrismiddle10/sorry-dont-have-one
Screenshots and Videos
No response