Replies: 2 comments 6 replies
-
This can be achieved by setting |
Beta Was this translation helpful? Give feedback.
-
right, I see two ways of doing this:
this is probably easiest, but I don't quite understand how this will work with refetches. Will the backend send the same data again when you re-fetch with the same timestamp, or is it stateful and knows that you've already retrieved this data? Or is your merge more than just an appending...
not sure if that will work better though. generally, when I'm reading that you have one fetch that returns 1000 rows - I don't think that's generally a good idea. What is the frontend going to do with so many rows? It will be slow to render, and then you need to use virtualization or windowing etc to not be slow. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm hoping that someone can give me a brief overview of the best way to fetch data based on a timestamp:
IE. on initial load of the app, I download a full set of data and keep it cached, but on subsequent calls to the API include a timestamp so it only fetches the new/updated data from the API and merges it with the existing set.
I think I might need to use hydration - but not completely sure.
My initial call to the API is expensive and slow, so only want to do it once while use is using the app.
Thanks in advance,
Tom
Beta Was this translation helpful? Give feedback.
All reactions