Replies: 2 comments 2 replies
-
jotai atoms are modeled after If you don't want doing it with hooks, (which I totally agree!) |
Beta Was this translation helpful? Give feedback.
-
Newer version of jotai has an experimental feature (Noticed this discussion from the @rodrigocfd 's blog post: https://bluedesk.blogspot.com/2022/06/global-usestate-hooks-with-jotai.html ) |
Beta Was this translation helpful? Give feedback.
-
Hi there, I'm wondering if I can somehow read the state of an atom outside of the normal component lifecycle, not using hooks.
With redux for example i would do it like this:
I can't figure out or find info about doing something like this with Jotai, is it even possible?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions