-
-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Labels
Description
What happened?
In my attempt to make a repro of #919, I found that the same crash happens sometimes when I reload the bundle (r
), when having UnistylesRuntime.updateTheme()
in a useEffect (which depends on some fetched external data). Not sure if this is entirely related, but the same stack trace appears.
It only seems to be happening with the react-native-tvos
fork (while running it on iOS though). I know it's not officially supported, but an investigation would be much appreciated!
Steps to Reproduce
- Run the repro on iOS simulator
- Open the app
- Reload the app a few times (with some time in between)
- App crashes
Snack or Repository Link (Optional)
https://github.com/slvvn/unistyles-v3-repro/tree/repro/crash-on-hmr
Unistyles Version
3.0.7
React Native Version
0.79.5-0 (tvos)
Platforms
iOS
Expo
Yes
Additional information
- I use recommended version of
react-native-nitro-modules
compatibility table - I've searched for similar issues in this repository and found none
- I double-checked that my issue was not covered in documentation