Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix circular reference with Reanimated 3 #462

Merged

Conversation

piaskowyk
Copy link
Contributor

The Reanimated since version 3 captures entire objects to the worklet's closure, instead of capturing just single object property. However, this can cause problems when some objects contain circular references. To avoid issues, it is highly recommended to only pass objects that are as small as possible to the worklet closure.

@TomCorvus
Copy link

Thank you so much @piaskowyk, it fixes this error software-mansion/react-native-reanimated#4177 on react-native-draggable-flatlist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants