Skip to content

Conversation

bowheart
Copy link
Collaborator

Description

The types for useAtomState say that a config object can be passed to control whether the hook suspends and to set the operation string for debugging. But currently, the config object is completely ignored in useAtomState.

Actually use the config object. Make it override the default operation string and pass its suspend value along to its internal useAtomInstance call.

Add a test that reproduces the issue and confirms the fix.

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