Skip to content

Commit da71492

Browse files
committed
Set the deprecated viewModel function's deprecation level to hidden to avoid conflicts with the new one
1 parent 95023f1 commit da71492

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lifecycle-viewmodel/src/commonMain/kotlin/ViewModel.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ expect inline fun <reified VM : ViewModel> viewModel(
4747
"Use the one with a `viewModelStoreOwner` parameter instead. " +
4848
"This function might be removed in the future. " +
4949
"If you call this function with a `key` argument, make sure you used a named argument " +
50-
"so your source still compiles when this is removed."
50+
"so your source still compiles when this is removed.",
51+
level = DeprecationLevel.HIDDEN
5152
)
5253
@Composable
5354
inline fun <reified VM : ViewModel> viewModel(

0 commit comments

Comments
 (0)