getSsrState

Get the SSR state from the global window object. This is used to retrieve the state that was serialized on the server side and sent to the client.


inline fun <T> getSsrState(json: Json = Json.Default): T?(source)

Get the SSR state from the global window object and deserialize it to the specified type. This is used to retrieve the state that was serialized on the server side and sent to the client, and then decode it using the provided JSON serializer.

Parameters

json

The JSON serializer to use for deserialization. Defaults to Json.Default.