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

invoking viewmodel setState{copy()} in onResume() causing a crash #1236

Open
metheway opened this issue Sep 26, 2021 · 1 comment
Open

invoking viewmodel setState{copy()} in onResume() causing a crash #1236

metheway opened this issue Sep 26, 2021 · 1 comment

Comments

@metheway
Copy link

metheway commented Sep 26, 2021

An Activity is re-entered with singletask mode, so it ran onNewIntent() and onResume().
I invoke a update function in onResume() and it will setState{copy(...)} in viewModel, however, it crashes without any message...

btw, i use selectSubscribe() to listen to the state of two property, deliveryMode is set to a unique value.

@elihart
Copy link
Contributor

elihart commented Sep 27, 2021

You need to provide a stacktrace if you want any chance of getting help.

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