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

Keep all fields with one single key #1863

Merged
merged 8 commits into from Apr 4, 2022
Merged

Keep all fields with one single key #1863

merged 8 commits into from Apr 4, 2022

Conversation

shuding
Copy link
Member

@shuding shuding commented Feb 18, 2022

Aiming to address #1723. This is a potential breaking change for those who directly access to the cache (e.g. doing cache.set(key, value), or initializing the cache with prefilled data).

Todos:

  • Merge the $inf$, $ctx$ and $len$ keys in SWRInfinite as well.
  • Documentation. Figure out a good solution for the "prefilling data into cache" scenarios.

@shuding shuding added this to the 2.0 milestone Feb 18, 2022
@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 18, 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 73dc35b:

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 4, 2022 09:51
@shuding shuding requested a review from huozhi as a code owner April 4, 2022 09:51
@shuding shuding merged commit 8658c95 into main Apr 4, 2022
@shuding shuding deleted the shu/62ba branch April 4, 2022 12:28
@chibicode chibicode mentioned this pull request May 13, 2022
himanshiLt pushed a commit to himanshiLt/swr that referenced this pull request Jun 10, 2022
* store all data fields using one single key

* fix tests

* fix bugs and tests

* fix lint error

* refactor code

* get rid of $ and $

* simplify serialize
@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.

None yet

2 participants