OptimisticData does not work for swrInfinity (1.3.0, 2.0.0-rc.3) #2261
Unanswered
sergeyvo80
asked this question in
Q&A
Replies: 0 comments
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.
-
Firstable I used useSWR and optimistic mutate, all worked allright.
I watched optimistic data then data from server when i added new item to array, data on the page refreshed correctly.
Then a start use useSWRInfinite, in 1.3.0 alltime i get revalidate first page even flaw was revalidateFirstPage: false.
Then i update swr to 2.0.0-rc.3 , now i donw see revelidate of first page
and I have optimistic and server date from result of mutate fn and i have optimistic and server date in the cache in swr dev tool
but data on the page did't update.
Please info, do we plann to fix optimistic mutate for swrInfinity ?
Beta Was this translation helpful? Give feedback.
All reactions