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

LifecycleEffect depreciated #496

Open
hafiz013 opened this issue Oct 8, 2024 · 1 comment
Open

LifecycleEffect depreciated #496

hafiz013 opened this issue Oct 8, 2024 · 1 comment

Comments

@hafiz013
Copy link

hafiz013 commented Oct 8, 2024

below here depreciated:

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

then how to replace it?

@ibraheemzulfiqar
Copy link

"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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants