use_build_context_synchronously
false negative when checking mounted for different BuildContext
#5123
Labels
P3
A lower priority bug or feature request
set-flutter
Affects a rule in the recommended Flutter rule set
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Describe the issue
When using multiple
BuildContext
,use_build_context_synchronously
is not triggered if I checked.mounted
for a different BuildContext.To Reproduce
Expected behavior
The linter should trigger as I've not checked for
context.mounted
.The text was updated successfully, but these errors were encountered: