Set shared value synchronously when re-rendering a component #2139
Unanswered
hashedname
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Use case:
If we set the shared value, let's say in
useEffect
oruseLayoutEffect
, it's rendered with the old animated style and new content but then updated to the new animated style. Is there any way to set or re-initialize a shared value synchronously to the re-rendering of a component in reanimated 2?Beta Was this translation helpful? Give feedback.
All reactions