Replies: 3 comments 8 replies
-
So, |
Beta Was this translation helpful? Give feedback.
-
Maybe my description of the cache is not accurate enough, resulting in our different understanding, I want the cache, is to store the data temporarily can be, later can continue to use. The following code, implemented using https://codesandbox.io/s/cool-oskar-wvp0wx?file=/src/App.tsx |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi, first of all thanks for this amazing lib
I have a question, but it took me a long time to solve it, so I came to seek help.
Q1: How to cache the async post data?
Q2: How to show the post data that prefetched in sever side?
Desc:
In the hack news example, clicking the next button will query the next post, and if we add a
previous
button, click it will return the post of the previous id, of course the simplest case is to re-query, but it would be better if a caching mechanism could be provided.https://codesandbox.io/s/fancy-wood-9pdck7?file=/pages/about.js
Beta Was this translation helpful? Give feedback.
All reactions