Closed chrishan17 closed 6 years ago
__invokeOnDispatch
is at an earlier point than __onDispatch
in the call stack. Overriding the former is perfectly fine, it just required extra book-keeping that FluxStore would normally handle automatically. This earlier hook is important to make FluxReduceStore
work efficiently and conveniently.
The documentation in FluxStore
is referring to subclasses that are real data stores, not other store interfaces that will be further extended.
Feel free to provide more context on why you are making this change if you ran into issues because of it.
emm, i misunderstand the documentation. Thanks for the explanation
No problem, thanks for checking!
"Subclasses must override this method. This callback is the only way the store receives new data." what you say in FluxStore