79087663

Date: 2024-10-14 20:46:36
Score: 0.5
Natty:
Report link

According to Android's documentation, you should be using a SavedStateViewModelFactory to create a SaveStateHandle that is passed to your ViewModel constructor.

The error indicates that you are creating the SaveStateHandle directly within your composable instead of using a factory.

Try the methodology described in this other post.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Robert Jamison