MCPcopy Create free account
hub / github.com/evolify/dumpfun / getQuery

Function getQuery

common/utils/client.ts:13–19  ·  view source on GitHub ↗
(key: string, defaultValue?: T)

Source from the content-addressed store, hash-verified

11}
12
13export function getQuery<T>(key: string, defaultValue?: T) {
14 if (typeof window === "undefined") {
15 return defaultValue
16 }
17 const urlParams = new URLSearchParams(location.search)
18 return (urlParams.get(key) as T) || defaultValue
19}

Callers 1

utils.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected