clear cache after reseting the query variables. #3413
Unanswered
mahdi-jafaree
asked this question in
Q&A
Replies: 1 comment
-
|
Hi, did you ever found a solution to this ? currently having the same need in my expo app :/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I'm using urql with react native in order to create a infinite scroll list. I went through the documentation and since my graphql api is relay compatible pagination, I used
relayPaginationexported from@urql/exchange-graphcache/extras. for caching as it's expected I'm usinggraphcacheexchange.I want to add the pull-down-to-refresh when user tries to refresh the list item should only show the new data and clear the old data (same experience as the first query runs) but now when I call the
executeQuerywith varaibles being reset callback function returned byuseQuerythe old data is not cleared. also I want to keep old data while scrolling down.is it possible to have only new data when variables are reset? if yes may I know how?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions