Closed maartenbreddels closed 1 year ago
@mariobuikhuizen noted that the state of these data values have a different life cycled compared to the widget, if hot reloading it used. Hot reloading will use the current values of the widget model, but the data will be reset.
So we can do
data needs to be a function because we can create multiple models out of a single template, but with different data.