Replies: 2 comments 5 replies
-
@aulneau Can you help on this? a side note:
Yeah, we changed that behavior before v1 because it was very hacky and thought it's not a right abstraction. |
Beta Was this translation helpful? Give feedback.
-
Hmm interesting, I can't play with the repo at this moment, but could you try this version and see if the issue persists? This is the version from #653 which possibly affects this kind of behavior.
or
Additionally, can you explain in more depth the result you're hoping for? |
Beta Was this translation helpful? Give feedback.
-
Good day everyone. A long time ago we decided to write a production-ready app by using jotai(0.16.5) and jotai/query. I know that is not good, but it was MVP and we wanted to write a source code quickly. We found a significant bug that refetch data when we don't need it, and now I wanted to migrate to the new version of the jotai (1.3.0 now), but I faced several problems that I don't know how to resolve properly. I created a repository that reproduces these problems.
b) press the edit button (for ex. Dan)
c) go back
d) press edit button (for ex. Maksim)
Actual result:
Expected result:
I found possible solution, wdyt?
https://github.com/Vanish404/jotai-example/blob/main/frontend/my-app/src/components/users/createUser.jsx#L31
In the current version (0.16.5) atom returns a promise and we can wait, but now we cannot do it (1.3.0)
Thank you so much for building this fantastic package!
Beta Was this translation helpful? Give feedback.
All reactions