Update getting-started.md

This commit is contained in:
InsanusMokrassar 2024-01-11 18:02:10 +06:00 committed by GitHub
parent 6dc843337b
commit fce4d336c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,9 +74,9 @@ class MainNodeView(
object MainNodeFactory : NavigationNodeFactory<NavigationNodeDefaultConfig> { object MainNodeFactory : NavigationNodeFactory<NavigationNodeDefaultConfig> {
override fun createNode( override fun createNode(
navigationChain: NavigationChain<Base>, navigationChain: NavigationChain<NavigationNodeDefaultConfig>,
config: Base config: NavigationNodeDefaultConfig
): NavigationNode<out Base, Base>? = if (config is MainConfig) { ): NavigationNode<out NavigationNodeDefaultConfig, NavigationNodeDefaultConfig>? = if (config is MainConfig) {
MainNode(config, navigationChain) // Or `MainNodeView(config, chain)` for MVVM MainNode(config, navigationChain) // Or `MainNodeView(config, chain)` for MVVM
} else { } else {
null null