krzysztof
05/04/2025, 7:58 PMNavigation destination that matches request (…) cannot be found in the navigation graph
. I found out that uri decoding the value in overridden serializeAsValue
method makes it work, but I cannot find it anywhere mentioned it documentation. Is this the right approach or is there something I’m missing?Ian Lake
05/04/2025, 9:30 PMoverride fun serializeAsValue(value: SearchParameters): String {
// Serialized values must always be Uri encoded
return Uri.encode(Json.encodeToString(value))
}
krzysztof
05/04/2025, 9:42 PMah, gotcha, so uri encoding it was a right thing to doCopy code// Serialized values must always be Uri encoded
Ian Lake
05/04/2025, 9:43 PMUri.encode
you'll find a couple of threads where we've talked about this before tooIan Lake
05/04/2025, 9:44 PMStringType
does this automatically for you if you use a String
type in your class