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
{{ message }}
This repository was archived by the owner on Jan 1, 2025. It is now read-only.
recoil-relay cannot refetch using useRecoilRefresher or atom({ key: "fetchKey", ... }) pattern. (Even if the data is invalidated in the relay store.)
As far as the implementation and behavior are concerned, it seems that fetchQuery calls are unconditionally skipped unless the variables passed to the query change.
It seems that the only way to avoid this is to ignore the type in variables and add fetchKey, but this is a hack
variables:
({ get })=>{constfetchKey=get(fetchKeyState);constvariables={
...
};return{
...variables,
fetchKey,}asany;