Skip to content

Conversation

@bowheart
Copy link
Collaborator

@bowheart bowheart commented Jul 25, 2025

Description

To better mirror useAtomState, give injectAtomState a third param: A config object with one optional property: operation. This property has the exact same effect as other hooks and injectors.

This isn't a big deal as the operation is just for debugging, but I'd expect this field to be there just for completeness given all the other APIs.

Add a test that confirms that the type additions and the new feature work.

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.

2 participants