Answer the question
In order to leave comments, you need to log in
How and where to store data from the database in a Redux application?
I can't figure out where to store application data.
I write the received JSON from mongoose to the initialState of the desired component.
I manipulate (search, filters, add data for rendering, etc.) save by action'u back
Is everything correct? Feels like I missed something
Answer the question
In order to leave comments, you need to log in
initialState should be initial (empty state).
Get data from the database and save it to the state through the action.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question