Replies: 1 comment
-
yes, thats right. the
this is also correct I believe. You could even improve that by doing an optimistic update when you create POST4, so that it will be immediately added to the queryCache, so that you can see it instantly when you go back to the posts page. But this is a more advanced example :) |
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.
-
Hi to all,
i found react-query today and i'm trying to learn it :) I downloaded the basic example and i'm trying to understand how this work. What i understand is:
So, in this example when i visit a page already loaded i see the cached version and when the "background" load is finished if some post is changed, the UI will be automatically refreshed ?
example:
I well understand ?
Beta Was this translation helpful? Give feedback.
All reactions