error Safe
Creates a MutableState holding an ErrorSafeValue for value.
Intended to be used with remember inside a composable:
var firstName by remember { errorSafe(member?.firstName ?: "") }Content copied to clipboard
Wire the field into a FormValidator.ValidationField and update via ErrorSafeValue.copy:
ValidationField(value = firstName.value, name = "First Name", type = FormValidator.Type.Required) {
firstName = firstName.copy(error = it)
}Content copied to clipboard