-
Notifications
You must be signed in to change notification settings - Fork 73
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
Disposal callbacks aren't called when disposing of a TreehouseUi #2248
Comments
If you are tearing down the whole Zipline instance, what's probably happening is that this is running after the binding through which logs are sent is removed. |
When you say Zipline instance, do you mean for a single screen? My understanding was that a Zipline instance would survive for the lifetime of the treehouse app, but I'm seeing this issue when tearing down a single screen, e.g. navigating back from a treehouse screen. |
I don't know how it's wired internally, but I would expect each screen to be a Zipline instance, yes. I can look next week. |
The Zipline instance spans multiple screens, so I think this is likely a lifecycle step I’ve missed in the Treehouse part of Redwood. |
The following does not work when a TreehouseUi screen is closed/disposed of on both Android and iOS:
A workaround is to use a
LaunchedEffect
:The text was updated successfully, but these errors were encountered: