GregoryConrad / rearch-dart

Re-imagined approach to application design and architecture
https://pub.dev/packages/rearch
MIT License
88 stars 4 forks source link

FocusNode effects are not disposing the nodes #179

Closed GregoryConrad closed 4 months ago

GregoryConrad commented 4 months ago

Discussed in https://github.com/GregoryConrad/rearch-dart/discussions/178

Originally posted by **busslina** May 16, 2024 Is there a reason on built-in controllers (`TextEditingController`, `FocusNode` and `FocusScopeNode`) 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.

FocusNode effects aren't disposing the nodes.