Replies: 3 comments 5 replies
-
Can anyone help? I think, if there are two jotai instances in memory, it behaves unexpectedly. |
Beta Was this translation helpful? Give feedback.
-
Just wondering if anyone had any ideas on this, tried just using a regular atom and still the same issue. When using the atomWithStorage its overwriting the atom in the localStorage with the different button counts so they seem to be looking at the same key for the atom but not re-rendering on count change in the same window. |
Beta Was this translation helpful? Give feedback.
-
Also an issue here so, how is it possible to slove? |
Beta Was this translation helpful? Give feedback.
-
Summary
I have a vite application with the vite-module-federation plugin I have a button component and a jotai hook that im exporting out.
When I update the state only one of the buttons updates and not both, I can see the localStorage of the application changing as I increment the count, and when i refresh the page they use the localStorage and are the same, but when i press one it should update/rerender the other but it doesnt seem to.
The Button
The Atom
The Remote Config
The Host Config
The Host
Beta Was this translation helpful? Give feedback.
All reactions