bjoluc / next-redux-cookie-wrapper

Sync a subset of your Redux state with cookies in Next.js :cookie: :sparkles:
MIT License
114 stars 4 forks source link

can you include a working example project #1

Closed andrew-oko-odion closed 4 years ago

andrew-oko-odion commented 4 years ago

Hey can you include a working example, most people usually have slightly different configuration on their nextjs project. so one can see how to adapt theirs.

bjoluc commented 4 years ago

The whole point of this package being a drop-in replacement is that it works with the same setup as next-redux-wrapper. There is already a working example in the next-redux-wrapper docs, which I linked in the setup section. I personally do believe that copy-pasting their example into this project's Readme would unnecessarily bloat up the documentation (the example code snippet is rather large).

Closing this as won't fix. Feel free to re-open this issue if you disagree.

efstathiosntonas commented 4 years ago

Thanks for providing this module!!

Can you please share an example with a custom server.js?

bjoluc commented 4 years ago

Hey, glad you found it! There's nothing special about using a custom server.js. This package only wraps the App component in _app.js and does not require any special setup apart from that. You could basically just use the custom server example and follow the setup instructions. Happy coding!

bjoluc commented 3 years ago

Sorry @andrew-oko-odion for beeing a bit harsh back then! Guess I didn't fully get the question; definitely changed my mind on this one! v2 includes a demo directory now for folks to tinker around with :slightly_smiling_face: