Skip to content

StoresynkRuntime

const StoresynkRuntime: () => null

Defined in: @storesynk/react/dist/components/StoresynkRuntime.d.ts:12

Loads the @storesynk/elements runtime in the browser. The elements bundle registers custom elements and touches document at module top level, so it must never execute during SSR: the dynamic import inside useEffect runs client-only, strictly after React hydration (so engine DOM mutations can never cause hydration mismatches). Idempotent - the module cache makes repeat mounts (StrictMode, soft navigation) no-ops.

renders this automatically; use it directly only with loadRuntime={false} setups that place the loader elsewhere.

null