Answer the question
In order to leave comments, you need to log in
Flux View-Controller?
There are 3 widgets on the page (each widget is a list), widgets are independent of each other and change when data for a particular widget arrives, but for example there is a button that requests data for 3 widgets at once. The question is, should they have a common Controller-View that monitors data changes, or should each widget have its own Controller-View
Answer the question
In order to leave comments, you need to log in
When you click on the button, fire an action , the store informs all listeners that something has changed, and the widgets that are subscribed to events from the store are rendered with the new data. This is how everything should work in Flux , no additional components are needed for control.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question