From f794d0c2813943060e885d0946e66a251784e5f2 Mon Sep 17 00:00:00 2001 From: Dane Mackier Date: Tue, 16 May 2023 16:44:26 +0200 Subject: [PATCH] fix: force rebuild ViewModelwidget to follow natural flutter build path --- lib/src/view_models/view_model_widget.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/view_models/view_model_widget.dart b/lib/src/view_models/view_model_widget.dart index 42a5f8aa3..7f99ef5e3 100644 --- a/lib/src/view_models/view_model_widget.dart +++ b/lib/src/view_models/view_model_widget.dart @@ -28,6 +28,6 @@ class DataProviderElement extends ComponentElement { void update(ViewModelWidget newWidget) { super.update(newWidget); assert(widget == newWidget); - rebuild(); + rebuild(force: true); } }