Trying to implement Redux to a NextJS project
Unanswered
Kurilian Bobtail posted this in #help-forum
Kurilian BobtailOP
I have been trying to wrap my head around how to implement redux to a NextJS project. The thing that confuses me the most so far is that according to Redux documentation "A Next.js server can handle multiple requests simultaneously. This means that the Redux store should be created per request and that the store should not be shared across requests."
Now I can wrap the entire layout in the layout.tsx file with the StoreProvider but I am not sure as to if that is the correct way to implement since we are going for a per request store creation.
Now I can wrap the entire layout in the layout.tsx file with the StoreProvider but I am not sure as to if that is the correct way to implement since we are going for a per request store creation.