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

Use memos for Workers, not refs #21

Merged
merged 2 commits into from
Nov 23, 2022
Merged

Use memos for Workers, not refs #21

merged 2 commits into from
Nov 23, 2022

Conversation

ericyd
Copy link
Owner

@ericyd ericyd commented Nov 23, 2022

Using refs for Workers was causing the Worker to be re-loaded on every render. This is expected behavior for refs, I just didn't understand how it worked. Using a memo with no dependencies is the way to go for this behavior.

@ericyd ericyd merged commit eb1fe4d into main Nov 23, 2022
@ericyd ericyd deleted the use-worker branch November 23, 2022 16:58
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