Commit b3cc81e
Fix the issue with next.js throwing errors while hydrating (#8869)
## Summary
Fixing the issue with next.js throwing errors while hydrating:
#8842
I'm not proud of my solution. I tried to utilize `useId` from react as a
source for the ID there, which would make the ID synchronized between
the server and the browser, but it's producing a string ID, and it
couldn't work there.
However, as I deleted the `nativeID` prop on web, everything seemed to
be working (?). I don't know the possible edge cases well, so please
confirm or reject my PR
## Test plan
One can run the `next-example` app which is provided in the repo with
and without my change, refresh the page a couple of times while
observing the console - hydration errors should disappear1 parent c280b69 commit b3cc81e
File tree
1 file changed
+1
-1
lines changed- packages/react-native-reanimated/src/createAnimatedComponent
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
518 | | - | |
| 518 | + | |
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
| |||
0 commit comments