MCPcopy Create free account
hub / github.com/code-forge-io/remix-client-cache / constructKey

Function constructKey

src/index.tsx:241–244  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

239}
240
241const constructKey = (request: Request) => {
242 const url = new URL(request.url);
243 return url.pathname + url.search + url.hash;
244};
245
246export const invalidateCache = async (key: string | string[]) => {
247 const keys = Array.isArray(key) ? key : [key];

Callers 2

decacheClientLoaderFunction · 0.85
cacheClientLoaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected