MCPcopy Create free account
hub / github.com/brillout/react-streaming / stringifyKey

Function stringifyKey

src/shared/key.ts:8–18  ·  view source on GitHub ↗
(key: unknown)

Source from the content-addressed store, hash-verified

6import { assertUsage } from './utils.js'
7
8function stringifyKey(key: unknown): string {
9 const keyString = stringify(key, {
10 sortObjectKeys: true,
11 htmlScriptSafe: {
12 // Could be set to `false` but we always use `htmlScriptSafe.escapeScripts` to be extra safe
13 escapeScripts: true,
14 escapeURLs: false,
15 },
16 })
17 return keyString
18}
19
20function assertKey(keyValue: unknown) {
21 assertUsage(

Callers 2

useAsyncFunction · 0.85
useAsyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…