Replies: 1 comment 1 reply
-
They should be getting disposed; see https://github.com/GregoryConrad/rearch-dart/blob/main/packages/flutter_rearch/lib/src/side_effects/text_editing_controller.dart After looking at the current FocusNode effect source they aren't getting disposed. That's a bug.
Yea, like a: use.disposable(FocusNode.new, (node) => node.dispose()); Assuming Dart's type inference doesn't screw that up, that seems like a solid idea to me (and could be used to fix the FocusNode effects |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a reason on built-in controllers (
TextEditingController
,FocusNode
andFocusScopeNode
) to not being auto-disposed?For this purpose I also envision that would be helpful to have a built-in side effect that execute once (like callonce), return the value and also execute on disposing. Similar to
use.effect
but this last one is void.Beta Was this translation helpful? Give feedback.
All reactions