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

Init tab with partial state #108

Open
dylancrockett opened this issue Jul 19, 2021 · 2 comments
Open

Init tab with partial state #108

dylancrockett opened this issue Jul 19, 2021 · 2 comments

Comments

@dylancrockett
Copy link

Is there currently a way to initialize the state of a new tab with only a part of the entire state? I saw that this was a feature which was looked at in issue #9, but cannot find where in the documentation it shows how this can be done. If the feature is not yet added what would be a possible workaround, or even would it be possible to add? I would be available to help if needed.

@aohua
Copy link
Owner

aohua commented Jul 21, 2021

Hi @dylancrockett , It doesn't support it yet. Can't think of any workaround for this now. I think will require some code change in redux-state-sync.

@thebetternewt
Copy link

Could this be accomplished with the prepareState option in the config for createStateSyncMiddleware()?

I am currently using this to filter out some state that I don't want transferred to the new browser tab.

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

No branches or pull requests

3 participants