You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to reset the cache for some query after mutationFn finishes so that the query is re-requested.
I'm using bunshi for wrapping and I've found that I can't fulfill this requirement, I can't directly dispatch any hooks like useSetAtom in bunshi's molecule.
In my code _resetIndex and _reset appear several times, in my conception I should have called resetDetailFolderPageAtom at mutationFn.
I'm not quite sure if this issuse belongs to bunshi or jotai or jotai-tanstack-query, if it doesn't belong to jotai-tanstack-query I can move it to another repository.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I need to reset the cache for some query after
mutationFn
finishes so that the query is re-requested.I'm using bunshi for wrapping and I've found that I can't fulfill this requirement, I can't directly dispatch any hooks like
useSetAtom
in bunshi's molecule.In my code
_resetIndex
and_reset
appear several times, in my conception I should have calledresetDetailFolderPageAtom
atmutationFn
.I'm not quite sure if this issuse belongs to bunshi or jotai or jotai-tanstack-query, if it doesn't belong to jotai-tanstack-query I can move it to another repository.
Beta Was this translation helpful? Give feedback.
All reactions