- Breaking change: migrated to null safety.
- Updated for Flutter 2.
- Updated text styles for Flutter 1.17.
- Updating to latest versions of RxDart and other deps.
- Updating to latest versions of RxDart and other deps.
- Updated deps to latest versions.
- Breaking change: Added disposal of stores and blocs.
- The
Bloc
interface now has a fourth method,dispose
. Blocs should implement this method to close/dispose of any resources they use. A Bloc should not expect any of its other methods to be invoked after it's disposed. - The
Store
class now has adispose
method as well. This will clean up any resources used by the store and invokedispose
on any Blocs it was given in its constructor. - The
StoreProvider
widget gains an optional named parameter to its constructor,disposeStore
. False by default, if this flag is set to true, theStoreProvider
will calldispose
on its store when its State object is disposed.
- The
- Refactored examples from a pair of apps into a single one. Also
consolidated tests.
- The "simple" example uses a long-lived
Store
, and the list example uses the newdispose
functionality to create a new Store whenever it's shown.
- The "simple" example uses a long-lived
- Breaking change: Added the concept of "afterware" to the library.
- Afterware are middle-ware like functions that are invoked after an
Action
has passed the reducing stage. If you need to perform a side effect after the app state has been updated in response to a givenAction
(e.g. save state to disk, dispatch other actions), afterware is the place to do it.
- Afterware are middle-ware like functions that are invoked after an
- Began using Dart versioning correctly.
- Added
FirstBuildDispatcher
, a new widget that will dispatch anAction
to an ancestorStore
the first time it's built.
- Changed
StoreProvider
to always useinheritFromWidgetOfExactType
. - Added
DispatchSubscriber
, a widget that subscribes to an ancestorStoreProvider
's dispatch function and builds widgets that can call it.
- Added
useful_blocs.dart
to hold some built-inBloc
s that devs might want to use. - Added
DebouncerBloc
, a Bloc capable of debouncing repeated actions.- Note that if an
Action
is cancelled byDebouncerBloc
, anyAction
that has been given to itsafterward
method will also be cancelled.
- Note that if an
- Added
afterward
method to theAction
class.
- First release in which I remembered to update the change log.
- Two examples in place, plus the library itself.
- Seems relatively stable.