Skip to content

Fix effects running on reconnect anyways#16

Open
JamesHutchison wants to merge 2 commits into
fix-checkbox-missing-checkedfrom
fix-rerender-on-reconnect
Open

Fix effects running on reconnect anyways#16
JamesHutchison wants to merge 2 commits into
fix-checkbox-missing-checkedfrom
fix-rerender-on-reconnect

Conversation

@JamesHutchison
Copy link
Copy Markdown
Owner

This fixes use_effect(something, []) running after a reconnection. The issue is that the memoize was never being called, so on the next render it was acting like an initial render. This would result in the state getting reset like a reload after an action.

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