Skip to content

Use screen lifecycle based on #637#825

Open
takahirom wants to merge 3 commits into
add-dfmfrom
page-lifecycle-owner
Open

Use screen lifecycle based on #637#825
takahirom wants to merge 3 commits into
add-dfmfrom
page-lifecycle-owner

Conversation

@takahirom
Copy link
Copy Markdown
Member


import androidx.lifecycle.ViewModel

class PageViewModel : ViewModel() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Isn't it enough if ViewModel extends LifecycleOwner directly? 🤔

@jmatsu-bot
Copy link
Copy Markdown
Collaborator

Asserted successfully. 💯

Generated by 🚫 Danger

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.

3 participants