StoresynkRuntime
StoresynkRuntime():
null
Defined in: @storesynk/next/dist/components/StoresynkRuntime.d.ts:13
Loads the @storesynk/elements runtime in the browser - the Next equivalent of the Astro integration’s injectScript(‘page’, …). 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.
loadRuntime={false} setups that place the loader elsewhere.
Returns
Section titled “Returns”null