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

[DO NOT MERGE] Change all instances of Reanimated sv.value = to sv.set() #6273

Closed
wants to merge 3 commits into from

Conversation

mozzius
Copy link
Member

@mozzius mozzius commented Nov 12, 2024

DO NOT MERGE: UNSURE IF THIS IS SAFE

Should make React Compiler happier and prevent optimisation bailouts

I've tried to be careful, but I can't be sure these are all correct

Note

It seems as if .set() must always be called on the UI thread. I've had to move some assignments to within a worklet function

Test plan

Temporarily reenable the lint rule, and see if it stops erroring.

Make sure all the components work the same

@mozzius mozzius changed the title Change all instances of Reanimated sv.value = to sv.set() [DO NOT MERGE] Change all instances of Reanimated sv.value = to sv.set() Nov 12, 2024
Copy link

Old size New size Diff
8.02 MB 8.02 MB 3.51 KB (0.04%)

@arcalinea arcalinea temporarily deployed to samuel/reanimated-set - social-app PR #6273 November 16, 2024 19:17 — with Render Destroyed
@gaearon
Copy link
Collaborator

gaearon commented Nov 23, 2024

merged separately

@gaearon gaearon closed this Nov 23, 2024
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