-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[FR]: Misused of DisposableEffect instead of LaunchedEffect #515
Comments
I think DisposableEffect is more suitable. LaunchedEffect is used to call suspend functions other than normal functions Sent from my 2201117TG using FastHub |
@hoc081098 I do agree with you about not using suspend function but we are not disposing anything at all |
I think, an empty onDispose{} is not bad |
@mhdabbaghy I also think this is the right usage of |
@SimonMarquis It's a bit of a conflict with the official docs 👀 |
Agreed that this is not an ideal use of The reason |
Is there an existing issue for this?
Describe the problem
in MainActivity to update the dark content of the system bars to match the theme, there is a DisposableEffect which
onDispose
method is empty with no commentthis code exists in MainActivity:103
Describe the solution
I can update it and use LaunchedEffect instead
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: