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

Ability to hydrate all pages without getServerSideProps and connect. #442

Closed
lukasfri opened this issue Dec 26, 2021 · 1 comment
Closed

Comments

@lukasfri
Copy link

Is your feature request related to a problem? Please describe.
I use Redux for saving my current theme I use in Material UI. They use a wrapper that provides the theme and as such I have a component that uses a selector to get the current theme and apply it. The issue is that I need to hydrate all pages for it to work meaning I have to create lots of empty getServerSIdeProps functions and connect pages which leads to alot of boilerplate.

Describe the solution you'd like
I would like the ability to turn on hydration for all pages regardless of if it is connected or not.

Describe alternatives you've considered
Right now I just connect pages with empty getServerSIdeProps functions.

Additional context
Nothing.

@kirill-konshin
Copy link
Owner

Wrap entire app and dispatch whatever you want for all pages: https://github.com/kirill-konshin/next-redux-wrapper#app

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

2 participants