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

refactor: removing the directly dispose of ModelStore and replace with Screen Lifecycle API #231

Merged
merged 2 commits into from
Oct 21, 2023

Conversation

DevSrSouza
Copy link
Collaborator

This PR is a proposal to remove all extensions APIs (in this case ScreenModel API) from the dispose function of the Navigator, there is no need for it currently, it can be replaced with ScreenLifecycleStore.

This will decouple the Navigator of the Screen Model API.

Comment on lines +37 to 39
val screenModelStore = remember(this) {
ScreenLifecycleStore.register(this) { ScreenModelStore }
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This garantes that the ScreenLifecycleStore is being registered for this screen

@DevSrSouza DevSrSouza merged commit 2105dcf into main Oct 21, 2023
1 check passed
@DevSrSouza DevSrSouza deleted the refactor/directly-dispose-model-store branch October 21, 2023 11:31
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

Successfully merging this pull request may close these issues.

None yet

3 participants