MCPcopy
hub / github.com/freshframework/fresh / normalizeKey

Function normalizeKey

packages/fresh/src/runtime/server/preact_hooks.ts:206–210  ·  view source on GitHub ↗
(key: unknown)

Source from the content-addressed store, hash-verified

204const PATCHED = new WeakSet<VNode>();
205
206function normalizeKey(key: unknown): string {
207 const value = key ?? "";
208 const s = (typeof value !== "string") ? String(value) : value;
209 return s.replaceAll(":", "_");
210}
211
212const oldDiff = options[OptionsType.DIFF];
213options[OptionsType.DIFF] = (vnode) => {

Callers 1

preact_hooks.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected