is using redux with next.js based app is considered anti-pattern or we are supposed to use redux even with next.js application like all other react applications.
For further actions, you may consider blocking this person and/or reporting abuse
is using redux with next.js based app is considered anti-pattern or we are supposed to use redux even with next.js application like all other react applications.
For further actions, you may consider blocking this person and/or reporting abuse
Taqui -
Francisco Moretti -
Salma Alam-Naylor -
Nguyễn Thanh Hòa -
Once suspended, hijazi313 will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, hijazi313 will be able to comment and publish posts again.
Once unpublished, all posts by hijazi313 will become hidden and only accessible to themselves.
If hijazi313 is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Muhammad Hamza Hijazi.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag hijazi313:
Unflagging hijazi313 will restore default visibility to their posts.
Top comments (7)
I use easy-peasy.now.sh/ with my next.js project. I would recommened redux but use a library like this to reduce the boilerplate. One thing thats nice about using Redux is you can take advantage of Redux dev tools which can be very useful.
This question could be rephrased as: "Is it Necessary to use Redux with a React.js application" :)
Next.js is just a framework on top of React which simplifies Server Side Rendering setup, but it is still React. And React/Redux combo is very popular and still often used, also by me, so the answer is - it is not necessary, but totally possible! The bigger the app and the more you like functional programming, the better chance Redux will be a good option!
There's an official example with redux in the nextjs repo: github.com/vercel/next.js/tree/can...
So I'd say, not an anti pattern.
there is no need for it. You can use the context api instead.
Not an anti pattern, you can use it if you want but it’s not necessary, personally I would recommend zustand github.com/pmndrs/zustand
its nightmare on persisting data, not recomended
It depends on types of app you build. Do you need global state ? If yes, then Redux is useful, else Redux is unnessessary.