mancha
Version:
Javscript HTML rendering engine
13 lines (12 loc) • 602 B
TypeScript
import type { IRenderer } from "./renderer.js";
/**
* Sets up two-way binding between the renderer's keystore and URL query parameters.
* It creates individual store keys for each parameter using the pattern `$$varname`,
* allowing components to watch for specific parameter changes. It also listens for `popstate`
* events to update the store when the user navigates through history.
*
* This function should be called once, for example in `IRenderer.mount()`.
*
* @param renderer The renderer instance.
*/
export declare function setupQueryParamBindings(renderer: IRenderer): Promise<void>;