Skip to content

Commit

Permalink
fix: force rebuild ViewModelwidget to follow natural flutter build path
Browse files Browse the repository at this point in the history
  • Loading branch information
FilledStacks committed May 16, 2023
1 parent 1a676ef commit f794d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/view_models/view_model_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ class DataProviderElement<T> extends ComponentElement {
void update(ViewModelWidget newWidget) {
super.update(newWidget);
assert(widget == newWidget);
rebuild();
rebuild(force: true);
}
}

0 comments on commit f794d0c

Please sign in to comment.