Skip to content

Commit 5a3a3a9

Browse files
authored
Update README.md about the ViewModel updates
1 parent 4337249 commit 5a3a3a9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,13 @@ The `com.huanshankeji.compose.material.icons.Icon` class delegates to both kinds
143143

144144
### ViewModel
145145

146-
The ViewModel module currently supports a small subset of the Compose ViewModel APIs, and delegates to raw UI state on
147-
Compose HTML / JS DOM. These APIs are highly experimental now.
146+
The ViewModel module currently supports a subset of the Compose ViewModel APIs. For ViewModel to work properly on Compose HTML / JS DOM, call `com.huanshankeji.compose.ui.window.renderComposableInBodyWithViewModelStoreOwner` instead of `org.jetbrains.compose.web.renderComposableInBody` on JS. These APIs are experimental now.
148147

149148
### Navigation
150149

151150
The navigation module currently supports a small subset of the Compose Navigation APIs, which does not support
152-
transition or animation on Compose HTML / JS DOM. These APIs are also highly experimental now.
153-
See [CMP-4966](https://youtrack.jetbrains.com/issue/CMP-4966) for a bug to avoid. Also, ViewModel-related functions
154-
are not implemented yet on Compose HTML / JS DOM.
151+
transition or animation on Compose HTML / JS DOM. These APIs are also experimental now.
152+
See [CMP-4966](https://youtrack.jetbrains.com/issue/CMP-4966) for a bug to avoid.
155153

156154
## Add to your dependencies
157155

0 commit comments

Comments
 (0)