I have a kotlin multiplatform project that has a jvm server and a KotlinJS client that uses kotlin-wrappers such us kotlin-react and react-router-dom. I recently updated the wrappers version and they changed the way that the NavigateOptions' state works. Before, i had something like this:
navigate(to="/", options = object : NavigateOptions {
override var replace: Boolean? = null,
override var state: Any? = "..." // This string is the state i want to set
})
But now they have changed the state to a "LocationState" type and i can't find out how to use it. I leave here a link to the new interface just in case it helps.