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(react): handle unstable inline selector results in useAtomSelector #88

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

bowheart
Copy link
Collaborator

Description

The recent useAtomSelector changes to move off of useSyncExternalStore for #83 introduced a bug with inline atom selectors that return referentially unstable results on every run. Handle that case specifically and add tests - one for strict mode on, one for strict mode off.

@bowheart bowheart merged commit 6a2f654 into master Nov 20, 2023
2 checks passed
@bowheart bowheart deleted the josh/inline-selectors-unstable-results branch November 20, 2023 16:44
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