Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGE: This removes the complex initialization
logic of the
DataViewModel<T>
. Instead of using theinitializeData
method, now the constructor of the view modelrequires some form of initial data. This requires developers to
explicitely define nullable types and allows the
data
field to beinitialized in all cases. To migrate, remove all
initializeData
callsand provide the constructor with some default data. It is still possible
to load data asynchronously, by overwriting the
initialize
method andfetching data there. One is responsible to call
super.initialize
in error cases.BREAKING CHANGE: This simplifies the routable and dialog config by
removing the
RouteBuilder.custom
variant. Basically, to use a custompage 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.