Open dellisd opened 4 weeks ago
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
: