Replies: 2 comments 3 replies
-
I think this is something we should discuss deeper. The issue is definitely that a "refetch" starts happening before the optimistic update happens (or even right after it), and it brings in old data after the optimistic update. Maybe what we need to investigate is a way to "cancel" an outgoing query when an optimistic update is done. Would that potentially fix this issue? |
Beta Was this translation helpful? Give feedback.
-
@tannerlinsley , I see you recently added a new method On that note, is it production-ready already? I'm asking because there is no documentation for that method in the API section. Also, there is no TypeScript support yet (index.d.ts). I can open a PR if you want to fix both issues. Thank you in advance 🙏 |
Beta Was this translation helpful? Give feedback.
-
I think Window Refocus Refetching and Optimistic Updates are two great features of this library and I'd like to keep using both. However, I'm having a hard time trying to make them work together.
The scenario is this:
I'm wondering, is there an easy way to improve this behavior?
Beta Was this translation helpful? Give feedback.
All reactions