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

Update rtk-query redux-persist Example #3146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sambolias
Copy link

Found that when rehydration is set up per the existing docs there is a runtime error when trying to load first time, or after clearing storage. Optionally accessing reducer path seems to work well, and was published on stack overflow https://stackoverflow.com/a/72959139. Updating these docs should save others the trouble I had.

@codesandbox
Copy link

codesandbox bot commented Feb 1, 2023

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

@netlify
Copy link

netlify bot commented Feb 1, 2023

Deploy Preview for redux-starter-kit-docs ready!

Name Link
🔨 Latest commit eab41cc
🔍 Latest deploy log https://app.netlify.com/sites/redux-starter-kit-docs/deploys/63dac616c75f55000a22d115
😎 Deploy Preview https://deploy-preview-3146--redux-starter-kit-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 1, 2023

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 eab41cc:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration
rsk-github-issues-example Configuration
@examples-query-react/basic Configuration
@examples-query-react/advanced Configuration
@examples-action-listener/counter Configuration

@kasparkallas
Copy link

Trying out redux-persist, the store seems to rehydrate without specifing any extractRehydrationInfo logic. Do you know if there's any difference whether I call it or not?

@phryneas
Copy link
Member

The job of extractRehydrationInfo here is to remove data that is otherwise restored "too much", so yes, you need it.

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.

3 participants