Replies: 2 comments
-
Sounds like it's an imperative approach. So, instead doing things in https://blog.axlight.com/posts/jotai-tips/
...may or may not help. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you very much @dai-shi but in the end I decided to go another way |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
Perhaps what I am doing goes against the spirit of Jotai, but I would like to implement something like this: I would like to retrieve data from the server and save it in an atom (thus causing a re-render of the component).
Subsequently this data can be modified by classes outside of React (and this I can do using the get/set functions of the ‘Store’).
At some point I would like to cause a re-render of the component using the ‘modified’ data directly from the store. How could I do this?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions