-
-
Notifications
You must be signed in to change notification settings - Fork 899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
removeAll(children) crashes in onRemove #2743
Comments
Hi there ! I've ran some tests, and according to the doc, If you add a class _RemoveWatcherComponent extends Component {
@override
void onRemove() {
debugPrint('onRemove');
super.onRemove();
}
} and transform using It might be because of Is it possible that the issue comes from there ? |
Yeah, that's definitely where it comes from. Not sure how to solve it nicely though, because we want the children to have their |
Current bug behavior
If you do
removeAll(children)
in a component'sonRemove
method it will assert with:Expected behavior
To be able to remove all children in
onRemove
so that one can do clean-up in there, if you add the children inonMount
for example.Steps to reproduce
More environment information
main
The text was updated successfully, but these errors were encountered: