MCPcopy Create free account
hub / github.com/TanStack/router / createResolvedGate

Function createResolvedGate

packages/start-client-core/src/hydration/runtime.ts:23–36  ·  view source on GitHub ↗
(
  id: string,
  when: HydrationWhen,
)

Source from the content-addressed store, hash-verified

21const fallbackHtmlByGateId = /* @__PURE__ */ new Map<string, string>()
22
23export function createResolvedGate(
24 id: string,
25 when: HydrationWhen,
26): HydrationGateRecord {
27 return {
28 id,
29 when,
30 promise: Promise.resolve(),
31 resolve: () => {},
32 resolved: true,
33 consumers: 0,
34 resolveListeners: new Set<() => void>(),
35 }
36}
37
38export function getOrCreateGate(
39 id: string,

Callers 2

useHydrationGateFunction · 0.90
GenericHydrateFunction · 0.90

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected