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

Integration with the redux #52

Closed
apapacy opened this issue Jan 19, 2018 · 3 comments
Closed

Integration with the redux #52

apapacy opened this issue Jan 19, 2018 · 3 comments

Comments

@apapacy
Copy link

apapacy commented Jan 19, 2018

It is desirable to have "out of the box" integration with the redux. So far I can get it all from the next.js and can not with the after.js:
"next-redux-wrapper": redux integration.
"next-routes": after.js's-like routes.

So. I tried to change ./src/_document.js, but it was replaced with system default ./src/_document.js on server start.

@jaredpalmer
Copy link
Owner

Yeah we need 2 things. A way to define a component that wraps everything on the client and a top level root component (first thing underneath BrowserRouter. That would solve this and a few other gotchas at the moment

@apapacy
Copy link
Author

apapacy commented Jan 19, 2018

Good. By the way, Next.js does not use the react-router, but there is a plug-in that does this (next-routes). "Routes are just components and don't / should not have anything to do with folder structure. Static route configs are fine" - its right for next.js+next-routes.

@apapacy apapacy closed this as completed Jan 19, 2018
@tejeshm
Copy link

tejeshm commented Nov 13, 2019

Yeah we need 2 things. A way to define a component that wraps everything on the client and a top level root component (first thing underneath BrowserRouter. That would solve this and a few other gotchas at the moment

Is there any example with this implementation??

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