Skip to content

v2.0.0

Compare
Choose a tag to compare
@buehler buehler released this 18 Mar 15:55
· 11 commits to main since this release

2.0.0 (2024-03-18)

Features

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.