Skip to content

Issue #553: Add AndroidX ViewModel integration as separate module#598

Closed
Al-F wants to merge 16 commits intobumble-tech:2.xfrom
Al-F:androidx-viewmodel-artifact
Closed

Issue #553: Add AndroidX ViewModel integration as separate module#598
Al-F wants to merge 16 commits intobumble-tech:2.xfrom
Al-F:androidx-viewmodel-artifact

Conversation

@Al-F
Copy link
Copy Markdown

@Al-F Al-F commented Sep 15, 2023

Description

...

Check list

  • I have updated CHANGELOG.md if required.
  • I have updated documentation if required.

import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.launch

class MyViewModel : IntegrationPointViewModel() {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's move it to samples otherwise this code will be shipped

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Additionally, let's create a proper sample in the demo modules

lifecycle = AndroidLifecycle(LocalLifecycleOwner.current.lifecycle),
integrationPoint = appyxV2IntegrationPoint,
) {
node(buildContext = it) { modifier ->
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we should create an example where we use ViewModelNode

@KovalevAndrey KovalevAndrey force-pushed the androidx-viewmodel-artifact branch from 25a0dba to 7206271 Compare October 30, 2023 16:22
@ExperimentalAnimationApi
@ExperimentalComposeUiApi
class MainActivity : NodeActivity() {
class MainActivity : ViewModelNodeActivity() {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I should revert this

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.

5 participants