<
script type="text/javascript">
window.addEventListener("load", function
() {
const root = document.getElementById("header-root");
if
(!root) return;
const api = window["HeaderVC"];
if (!api)
{
console.error("HeaderVC is not available");
return;
}
let initial = window.__VC_PROPS__?.["HeaderVC"]
|| {};
const ssrUrl = "/header";
// The page starts at its
route with the visitor's query and hash, so
// useSearchParams() and
useLocation() see them
const query = window.location.search;
initial.router ??= "memory";
initial.initialEntries ??= [ssrUrl +
query + window.location.hash];
// The SSR HTML was rendered without a
query: a page that reads it would
// not match the HTML, so with a
query the page is rendered fresh
const hasSSR = root.childElementCount
> 0;
if (hasSSR && !query) api.hydrate(root, initial);
else
api.mount(root, initial);
});
Nothing here
It seems we can’t find what you’re looking for. Perhaps searching can help.