reflux / refluxjs

A simple library for uni-directional dataflow application architecture with React extensions inspired by Flux
BSD 3-Clause "New" or "Revised" License
5.36k stars 330 forks source link

StoreClass.state access #515

Closed BryanGrezeszak closed 7 years ago

BryanGrezeszak commented 7 years ago

Reflux creates singletons for stores, and stores them at StoreClass.singleton. So accessing a store's state directly (for example, property foo) goes StoreClass.singleton.state.foo.

For convenience, StoreClass.state can be a getter that gets StoreClass.singleton.state in order to simplify that to StoreClass.state.foo.

BryanGrezeszak commented 7 years ago

done in v6.4.0

Remaining undocumented for now, as is not IE10 and IE9 compatible, plan usage accordingly for your project if using.