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

getServerSideProps #72

Open
egdavid opened this issue Jun 6, 2020 · 4 comments
Open

getServerSideProps #72

egdavid opened this issue Jun 6, 2020 · 4 comments

Comments

@egdavid
Copy link

egdavid commented Jun 6, 2020

What would be the best implementation of redux dispatch in getServerSideProps since pages aren't connected to the store in this boilerplate and the function must be called from a page?

@wootsbot
Copy link
Member

wootsbot commented Jun 6, 2020

@egdavid this is something similar to the following issue, i think the focus is good, I am doing some tests, but I would like to know more about how you imagined solving this.

@wootsbot wootsbot pinned this issue Jun 6, 2020
@egdavid
Copy link
Author

egdavid commented Jun 6, 2020

@wootsbot I've already started building something with next-redux-wrapper but it implies a complete refactoring of the store logic.
Another solution would be to use redux-toolkit.
Is this related to what you've tried this far?

@wootsbot
Copy link
Member

wootsbot commented Jun 7, 2020

@egdavid Feel free to contribute your ideas.

@wootsbot
Copy link
Member

wootsbot commented Jun 7, 2020

@wootsbot I've already started building something with next-redux-wrapper but it implies a complete refactoring of the store logic.
Another solution would be to use redux-toolkit.
Is this related to what you've tried this far?

I imagined create a wrapper like a (https://github.com/kirill-konshin/next-redux-wrapper) and taking this architecture further.

but his focus is good.

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