Skip to content

Suggestion: Stale While Revalidate cache management #35

@arnaudbzn

Description

@arnaudbzn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions