You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The demo is great and the performances are impressive.
More and more, Web apps use State While Revalidate for remote data fetching thanks to excellent libraries as SWR, react-query and Apollo Client.
It makes sense for React Server Components to support this pattern too.
In the demo, the data stored in the Postgres database could be changed by another user.
In the current implementation, only mutations done by the current app user refresh the cache.
With State While Revalidate remote data fetching, the changes done by other users will be reflected.
It would be great to see this feature demonstrated with React Server Components even in a minimal version.
The text was updated successfully, but these errors were encountered:
arnaudbzn
changed the title
Suggestion: Stale While Revalide cache management
Suggestion: Stale While Revalidate cache management
Dec 27, 2020
In this demo you could do this by invalidating the cache more often (see useRefresh). We’ll offer more granular refetching and cache invalidation APIs in the future versions.
The demo is great and the performances are impressive.
More and more, Web apps use State While Revalidate for remote data fetching thanks to excellent libraries as SWR, react-query and Apollo Client.
It makes sense for React Server Components to support this pattern too.
In the demo, the data stored in the Postgres database could be changed by another user.
In the current implementation, only mutations done by the current app user refresh the cache.
With State While Revalidate remote data fetching, the changes done by other users will be reflected.
It would be great to see this feature demonstrated with React Server Components even in a minimal version.
The text was updated successfully, but these errors were encountered: