Skip to content
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

This widget has been unmounted, so the State no longer has a context (and should be considered defunct). #28

Open
EricPHassey opened this issue Apr 20, 2021 · 3 comments
Labels
question Further information is requested

Comments

@EricPHassey
Copy link

Getting this error when switching between mobile and desktop. Also using the Stacked viewmodel package. Seems like when I change the layout something else is being removed.

@FilledStacks
Copy link
Owner

Not something else, the entire widget is removed from the widget tree.

@EricPHassey
Copy link
Author

Thanks for the prompt feedback. Any idea how to check for that or what may be occuring? Only does it when it switches from mobile to desktop. So something seems like it's being disposed and no longer having that state/context.

@FilledStacks
Copy link
Owner

@EricPHassey That is what's happening. The entire widget is being removed from the tree. That's how it works. What you're expecting is happening, is happening but that's by choice. WE don't want bot layouts alive if one is not needed so it's removed from the tree completely.

@Eimen2018 Eimen2018 added the question Further information is requested label Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants