AsyncSsrRouter

@Composable
fun IComponent.AsyncSsrRouter(initRoute: String = "/", contextPath: String = getContextPath(), active: Boolean = true, stateSerializer: () -> String? = null, routing: @Composable RouteBuilder.() -> Unit)(source)

A router supporting Server-Side Rendering (SSR).

This router will defer the rendering on the server until some asynchronous operation (e.g. fetching data) is finished. It requires the use of dev.kilua.routing.RouteEffect, dev.kilua.routing.routeAction, dev.kilua.routing.stringAction, dev.kilua.routing.intAction or dev.kilua.routing.noMatchAction for every declared route.

Note: Be sure to use one of the above functions for every possible route to ensure the server-side rendering is completed.