You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, it's impossible to use Unit as a result type for ResultRecipient according to InitialValidator.validateResultType, though would be useful as a sign of completed work without data.
UPD I've tried to achieve it (simply extend primitives list for InitialValidator.validateResultType), but it seems to be a restriction of SavedStateHandle.ACCEPTABLE_CLASSES:
java.lang.IllegalArgumentException: Can't put value with type class kotlin.Unit into saved state
at androidx.lifecycle.SavedStateHandle.validateValue(SavedStateHandle.java:271)
at androidx.lifecycle.SavedStateHandle.set(SavedStateHandle.java:251)
at com.ramcosta.composedestinations.result.ResultBackNavigatorImpl.setResult(ResultBackNavigatorImpl.kt:30)
The text was updated successfully, but these errors were encountered:
Currently, it's impossible to use Unit as a result type for
ResultRecipient
according toInitialValidator.validateResultType
, though would be useful as a sign of completed work without data.UPD I've tried to achieve it (simply extend
primitives
list forInitialValidator.validateResultType
), but it seems to be a restriction ofSavedStateHandle.ACCEPTABLE_CLASSES
:The text was updated successfully, but these errors were encountered: