K
K
KirylLapouski2018-05-11 10:19:31
JavaScript
KirylLapouski, 2018-05-11 10:19:31

How is the redux store and react component synchronized?

Are new props sent to components when the redux store changes? As I understood the answer - no, but how to make sure that when the store is updated, all components that depend on it are also updated?
The situation is this: when a new lesson is added to the page, the lesson is stored in the store, but does not come to the component as props.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
KirylLapouski, 2018-05-11
@KirylLapouski

Are new props sent to components when the redux store changes? As I understand the answer - no, but how to make sure that when the store is updated, all components that depend on it are also updated?

Of course, everything is synchronized. When the store changes, all changes come to the props of the corresponding components.
I just had a bug in non-redux code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question