S
S
Stepan2015-12-25 22:17:48
JavaScript
Stepan, 2015-12-25 22:17:48

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

1 answer(s)
N
Nikita Gushchin, 2015-12-25
@iNikNik

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 question

Ask a Question

731 491 924 answers to any question