flutter_redux 0.3.3
flutter_redux: ^0.3.3 copied to clipboard
A library that connects Widgets to a Redux Store
Changelog #
0.3.3 #
- Optional
onDispose
function - TheStoreConnector
andStoreBuilder
Widgets now accept anonDispose
function that will be run when the Widget is removed from the Widget tree (using State.initState under the hood). TheonInit
function takes the Store as the first parameter, and can be used to dispatch actions when your Widget is first starting up. This can be useful for data fetching. - Move to github
0.3.2 #
- Optional
onInit
function - TheStoreConnector
andStoreBuilder
Widgets now accept anonInit
function that will be run the first time the Widget is created (using State.initState under the hood). TheonInit
function takes the Store as the first parameter, and can be used to dispatch actions when your Widget is first starting up. This can be useful for data fetching. ignoreChange
function -StoreConnector
now takes an advanced usage / optional functionignoreChange
. It will be run on every storeonChange
event to determine whether or not theViewModel
andWidget
should be rebuilt. This can be useful in some edge cases, such as displaying information that has been deleted from the store while it is animating off screen.- Documentation updates
0.3.1 #
- Add the ability to build only once, while avoiding rebuilding on change. This can be handy if you need to manage access to the Store, but want to handle when to update your own Widgets.
0.3.0 #
- Make
StoreProvider.of
a factory rather than a static method - Additional documentation based on questions from the community
0.2.0 #
- Update for Redux 2.0.0
0.1.1 #
- Update documentation
0.1.0 #
Initial Version of the library.
- Includes the ability to pass a Redux
Store
down to descendant Widgets using aStoreProvider
. - Includes the
StoreConnector
andStoreBuilder
Widgets that capture theStore
from theStoreProvider
and build a Widget in response.