voyager icon indicating copy to clipboard operation
voyager copied to clipboard

LifecycleEffect depreciated

Open hafiz013 opened this issue 1 year ago • 1 comments

below here depreciated:

LifecycleEffect(
            onStarted = {
                viewModel.getList()
            },
            onDisposed = {
                viewModel.removeList()
            }
        )

then how to replace it?

hafiz013 avatar Oct 08 '24 05:10 hafiz013

"This API is a wrap on top on DisposableEffect, will be removed in 1.1.0, replace with DisposableEffect"

for screen's lifecycle you can use LifecycleEffectOnce or just use the DisposableEffect.

ibraheemzulfiqar avatar Oct 08 '24 08:10 ibraheemzulfiqar