rememberJoyDomStore
fun rememberJoyDomStore(view: <Error class: unknown class>, initialState: <Error class: unknown class> = JsonObject(emptyMap()), resolver: <Error class: unknown class> = Resolver.Default, onEvent: JoyDomHostEventHandler? = null, onError: JoyDomStoreErrorHandler? = null): JoyDomStore
Creates and remembers the JoyDomStore for view, seeded with initialState.
The store is created once per (view, initialState) — it owns the state from then on, so changing initialState afterwards is not a way to write to it (dispatch a binding, or key the composable on a new view). onEvent and onError are read through the latest composition, so passing a fresh lambda every frame is fine.
The initial resolve happens here, so a malformed document throws during composition rather than silently rendering something inert.