voyager icon indicating copy to clipboard operation
voyager copied to clipboard

ScreenLifecycleOwner leak

Open marcardar opened this issue 1 year ago • 1 comments

Using a very simple setup:

class FooScreen: Screen {
    @Composable
    override fun Content() {
         // nothing to show
    }
}
// in the UI
Navigator(
    screen = FooScreen(),
)

Launch the app, rotate the screen and LeakCanary instantly reports the leak. voyager-leakcanary.txt

marcardar avatar Feb 09 '24 10:02 marcardar

Thanks for sharing! This is happening on AndroidScreenLifecycleOwner. I will have a look into

DevSrSouza avatar Feb 22 '24 17:02 DevSrSouza