Skip to content

Commit 418d79f

Browse files
feat: improve updateShouldNotify
1 parent 9452d8a commit 418d79f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/form_builder.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,5 +335,6 @@ class _FormBuilderScope extends InheritedWidget {
335335
FormBuilder get form => _formState.widget;
336336

337337
@override
338-
bool updateShouldNotify(_FormBuilderScope oldWidget) => true;
338+
bool updateShouldNotify(_FormBuilderScope oldWidget) =>
339+
oldWidget._formState != _formState;
339340
}

0 commit comments

Comments
 (0)