In Flux implementation stores are singletons but how to manage for example searching or pagination.
I saw solution where I have CustomersStore which contains all customers from db and searching was resolved by reducing functions but in real world holding all data in Store is immposible.
Another aproach could be create CustomersSearchAction and CustomerStore can react on this action by replacing current state with new filtered state and emit event to components about data change but in this solutions I have problem with components isolation for example 3 components presenting data connected with 1 store and only in one componet searching occurs…
Maybe someone have some real world example with searching and pagination
Currently I have CustomersStoreFactory which create one CustomersStore per component