fluxo-js / fluxo

Fluxo is a simple, lightweight (~300LOC) and dependency free data infrastructure lib based on Facebook Flux and Backbone.js. It's compatible with React.js, but you can use with whatever you want to the view/component layer.
15 stars 3 forks source link

Releasing (or not) nested stores #30

Closed samuelsimoes closed 8 years ago

samuelsimoes commented 8 years ago

Now, with the nested events bubbling setup we pledged with this nested kind of use and nested stores could being stale when unset or swap this attribute. For this reason Fluxo will try whenever it's possible release nested stores when it goes out of its parent.

Important: it's opt-out (case you want continue using some nested instance out of its parent) using the releaseNested: false option on the methods:

samuelsimoes commented 8 years ago

This can be fixed on a smarter way. 👉 https://github.com/fluxo-js/fluxo/pull/31:D