( id: string, when: HydrationWhen, )
| 21 | const fallbackHtmlByGateId = /* @__PURE__ */ new Map<string, string>() |
| 22 | |
| 23 | export 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 | |
| 38 | export function getOrCreateGate( |
| 39 | id: string, |
no test coverage detected