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
onDispose
method from the arg passed toProvided
andComputed
callback. - An
it
method to the arg passed toComputed
callbak 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
NodeHasDependentsError
toNodeHasWatchersError
.
Removed #
StateStore.of
method since we can get aBuildStore
from aWatcherStatefulWidget
.Store
interface, since onlyBuildStore
is needed.- The
store
parameter in all methods ofStateObserver
.
[0.0.7] #
Added #
- A
global
parameter forComputed
for making its state stored in the root store. - A
cancel
method to thewatch
variable inComputed
to make it possible to unwatch a dependency.