-
Notifications
You must be signed in to change notification settings - Fork 2
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
UiRequestViewModel is ends silently #36
Comments
Or maybe there is another solution? |
Thanks for reporting the bug. I'll think about how to fix it. |
@freelanzer1 Looks like a solution to the problem, what do you think, is this solution suitable? |
@RadiationX It sounds good, but if it will be done automatically, inside the library and will not require improvements from library users. Please make changes to the library or describe in the documentation how to work around this problem (with examples) |
@freelanzer1 Please check if everything works correctly? |
When the ActivityViewModel is used in the project and it is necessary to perform cleanup using requireActivity().getViewModelStore().clear (), so the UiRequestViewModel terminates silently. Since this ViewModel is created from the library, users are not always aware of its existence, but the entire logic of the library is tied to it. As a result, it is not an obvious and silent bug, which leads to the refusal to all work in the library. The proposed solution is to finalize the library in terms of outputting a message to the log that the UiRequestViewModel has ended (logging to onCleared()) or indicating that after getViewModelStore().clear() it is necessary to recreate the Activity
The text was updated successfully, but these errors were encountered: