Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add keepPreviousData option #1929

Merged
merged 4 commits into from Apr 16, 2022
Merged

Add keepPreviousData option #1929

merged 4 commits into from Apr 16, 2022

Conversation

shuding
Copy link
Member

@shuding shuding commented Apr 16, 2022

Closes #192. Unlike the middleware solution, this built-in solution:

  • Supports toggling the keepPreviousData option.
  • Handles fallback states correctly.

Todos

  • Tests
  • Docs

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 16, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 972cefc:

Sandbox Source
SWR-Basic Configuration
SWR-States Configuration
SWR-Infinite Configuration
SWR-SSR Configuration

@shuding shuding marked this pull request as ready for review April 16, 2022 18:02
@shuding shuding requested a review from huozhi as a code owner April 16, 2022 18:02
@shuding shuding merged commit 3e71e9a into main Apr 16, 2022
@shuding shuding deleted the shu/6e03 branch April 16, 2022 18:12
himanshiLt pushed a commit to himanshiLt/swr that referenced this pull request Apr 26, 2022
* add laggy option

* use keepPreviousData

* add test cases

* add new test
@koba04 koba04 mentioned this pull request Aug 5, 2022
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keep previous result while revalidating
1 participant