Replies: 4 comments 3 replies
-
The code looks good (with |
Beta Was this translation helpful? Give feedback.
-
I'm doing some more checks and looks like the data gets updated internally but not in the UI:
With this code, the |
Beta Was this translation helpful? Give feedback.
-
Everything points to the direction that the atom inside |
Beta Was this translation helpful? Give feedback.
-
ok I have absolutely no idea what the issue was. All I did was refresh some dependencies, reduces my package.json to minimally required deps, ran |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use
useAtomCallback
to handle an onclick event. Below is a simplified code.When I use
updater2
which is using basic Jotai functionality everything is working fine but withuseAtomCallback
it doesn't do anything (no errors and also no value updates in the UI).What am I missing here?
P.S. Even wrapping the handler in a
useCallback
does not help:Beta Was this translation helpful? Give feedback.
All reactions