state_watcher 0.1.0
state_watcher: ^0.1.0 copied to clipboard
A simple, yet powerful reactive state management solution for Flutter applications.
0.1.0 #
Added #
- An
onDisposemethod from the arg passed toProvidedandComputedcallback. - An
itmethod to the arg passed toComputedcallbak in order to be able to update its value.
Changed #
- How dependencies are computed. Now every time you read a state, a dependency is created from where it is called. This is useful to be able to automatically dispose refs.
- Renamed
NodeHasDependentsErrortoNodeHasWatchersError.
Removed #
StateStore.ofmethod since we can get aBuildStorefrom aWatcherStatefulWidget.Storeinterface, since onlyBuildStoreis needed.- The
storeparameter in all methods ofStateObserver.
0.0.7 #
Added #
- A
globalparameter forComputedfor making its state stored in the root store. - A
cancelmethod to thewatchvariable inComputedto make it possible to unwatch a dependency.