Replies: 1 comment 4 replies
-
You can already work with atoms outside of components by accessing the store: https://jotai.org/docs/core/store |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently only way to update atom value is to identify it in a hook and then use setter function.
Like this:
I think adding ability to update it outside like React Hook State would be beneficial. It would give us easier interface and it would play better with some other libs.
It could look something like this:
Beta Was this translation helpful? Give feedback.
All reactions