commonMain.de.halfbit.componental.router.RestorableRoute.kt Maven / Gradle / Ivy
package de.halfbit.componental.router
import kotlinx.serialization.Serializable
@Serializable
public class RestorableRoute(
public val id: Id,
private var childState: ByteArray?,
) {
public fun consumeChildState(): ByteArray? =
childState.also { childState = null }
}