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: useWorkletCallback returned unstable ref #226

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

hannojg
Copy link
Member

@hannojg hannojg commented Jul 15, 2024

Before we were passing wrapWithErrorHandler(callback) to useWorklet, which would get as dependencies from the closure only callback, which is a unstable function, so I had to copy the mechanics from useWorkelt manually here to get the reps from the correct inner callback.

@hannojg hannojg merged commit a86dded into main Jul 15, 2024
@hannojg hannojg deleted the fix/use-worklet-callback-returns-unstable-ref branch July 15, 2024 07:40
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.

1 participant