-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# [2.0.0](v1.2.1...v2.0.0) (2024-03-18) ### Features * simplify data view model ([#5](#5)) ([fad3176](fad3176)) ### BREAKING CHANGES * This removes the complex initialization logic of the `DataViewModel<T>`. Instead of using the `initializeData` method, now the constructor of the view model requires some form of initial data. This requires developers to explicitely define nullable types and allows the `data` field to be initialized in all cases. To migrate, remove all `initializeData` calls and provide the constructor with some default data. It is still possible to load data asynchronously, by overwriting the `initialize` method and fetching data there. One is responsible to call `super.initialize` in error cases. * This simplifies the routable and dialog config by removing the `RouteBuilder.custom` variant. Basically, to use a custom page route builder, just use the provided property (`pageRouteBuilder`) and do not set the `routeBuilder` property. If the page route builder is provided, the route builder property is ignored.
- Loading branch information
1 parent
fad3176
commit 22ba29a
Showing
4 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters