Skip to content

Feature request: keep previous data  #56

@mrfratello

Description

@mrfratello

There are not enough "keep previous data" feature - return the previous key's data until the new data has been loaded.

This feature is well explained in swr: https://swr.vercel.app/docs/advanced/understanding#return-previous-data-for-better-ux

There is an example on @nanostores /query: https://codesandbox.io/p/sandbox/nanostories-query-react-paging-rick-morty-q6ctwm

It shows how the content "jumps" when the user navigates to the next page (when the cache is empty).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions