Is `SaveableStateHolder` an Android-only component...
# compose-web
d
Is
SaveableStateHolder
an Android-only component or does it also work on Web and Desktop? https://developer.android.com/reference/kotlin/androidx/compose/runtime/saveable/SaveableStateHolder It seems like it could be a good base to build a multiplatform Compose Navigation component. The current Android's Compose Navigation isn't compatible with the other Compose platforms, as it's a wrapper to the old Java-written Android Navigation.
d
See no reason why it wouldn't be. It probably is.
d
Do you mean it's Android-only?
d
Oops, I meant it's multiplatform.
👍 1
j
@Daniele B You can always do a quick search on https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]aveable/SaveableStateHolder.kt;l=37?q=SaveableStateHolder&sq= and see that SavableStateHolder is in the
commonMain
source set which means it's multiplatform. (For future reference, when you or anyone else here has similar question in the future)
👍 1
d
@jim great, thanks!