Not working set atom inside any async function #2948
Replies: 3 comments 7 replies
-
Hi, thanks for reporting. |
Beta Was this translation helpful? Give feedback.
-
Okay I will create new reproduction in stackblitz |
Beta Was this translation helpful? Give feedback.
-
@dai-shi Hello, thanks for link, I implement example: |
Beta Was this translation helpful? Give feedback.
-
Bug Description
I installed the rsbuild template and installed jotai to try to update the state after authorization, but when I use the async function jotai just doesn't update immediately, but only after it is executed, which is completely incorrect since it's not a side effect. When I installed react 19 everything worked, but I don't want to use react 19 because many libraries don't support it yet.
Its really strage bug, such basic things (auth) should be checked by default..
Reproduction Link
https://github.com/VictorPulzz/jota-with-auth-bug
Beta Was this translation helpful? Give feedback.
All reactions