title: Koin's getStateViewModel is deprecated - what is the alternative?
body: <p>I have the following implementation on my Fragment -</p>
  <pre class="lang-kotlin prettyprint-override"><code>class HeroesDetailsFragment : Fragment() {
  
      private val navArgs: HeroesDetailsFragmentArgs by navArgs()
  
      private val heroesDetailsViewModel: HeroesDetailsViewModel by stateViewModel(state = { navArgs.toBundle() })
  
      override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
          binding = FragmentHeroDetailsBinding.inflate(inflater, container, false)
          return binding.root
      }
  
      override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
          super.onViewCreated(view, savedInstanceState)
  
          initListeners()
          observeUiState()
          observeUiAction()
      }
  }
  </code></pre>
  <p>My HeroesDetailsViewModel looks like this -</p>
  <pre class="lang-kotlin prettyprint-override"><code>class HeroesDetailsViewModel(
      private val savedStateHandle: SavedStateHandle,
      private val heroesDetailsRepository: HeroesDetailsRepository
  ) : ViewModel() {
  
      private fun getArgsModel() = HeroesDetailsFragmentArgs.fromSavedStateHandle(savedStateHandle)
  
      init {
          val navArgs = getArgsModel()
          getAdditionalHeroDetails(navArgs.heroModel.id)
          observeUiEvents()
      }
  }
  </code></pre>
  <p>And in my ViewModelModule I declare the following</p>
  <pre class="lang-kotlin prettyprint-override"><code>val viewModelModule = module {
      // ...
      viewModel { params -&gt;
          HeroesDetailsViewModel(params.get(), get())
      }
  }
  </code></pre>
  <p>As you can see, I utilized the <code>stateViewModel</code> extension for Fragments that allows me to create a StateViewModel. The issue is that when trying to use the same functionality in Compose:</p>
  <pre class="lang-kotlin prettyprint-override"><code>@Destination
  @Composable
  fun HeroDetailsScreen(
      model: HeroesListModel,
      viewModel: HeroesDetailsViewModel = getStateViewModel() //provides deprecation error
  ) {
  
  }
  </code></pre>
  <p>I get the following deprecation message -</p>
  <p><code>getStateViewModel will be merged to sharedViewModel - no need anymore of state parameter</code></p>
  <p>I did not find any good references on this topic, and it seems weird for me because the Fragment extension <code>stateViewModel</code> is completely fine and not deprecated so I am missing information on what should I do to replace it.</p>
  <p>My goal is to inject a ViewModel with state parameters that will initialize the SavedStateHandle object. Currently I am using Koin DI, will switch in the future to Dagger-Hilt so it would be also a nice bonus to see the solution both in Koin and in Dagger-Hilt.</p>