I
I
Incognito442015-05-31 11:01:58
flux
Incognito44, 2015-05-31 11:01:58

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

1 answer(s)
E
Evgeny Skuridin, 2015-07-23
@skuridin

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 question

Ask a Question

731 491 924 answers to any question