flux icon indicating copy to clipboard operation
flux copied to clipboard

can store have multiple instances ?

Open victor-web opened this issue 10 years ago • 1 comments

With singleton stores, how do you prevent all components listening to a certain store from re-rendering when only one of them has updated?

example: app like instagram that have a list of photos and each item have actions that change only one of them like 'favorite" ps: all items in same view ps: without shouldComponentUpdate

@kyldvs how solve this? multiple instances ?

victor-web avatar Jun 24 '16 15:06 victor-web

We use FluxContainer, you can see how we build our applications by following the examples here: https://github.com/facebook/flux/tree/master/examples

kyldvs avatar Dec 16 '16 02:12 kyldvs