Skip to main content
Version: v7.0.0

getRequestKey

Cache instance for individual request that collects individual requests responses from the same endpoint (they may differ base on the custom key, endpoint params etc)


Import
import { getRequestKey } from "@hyper-fetch/core"

Parameters

getRequestKey(request: RequestInstance | RequestJSON<RequestInstance>, useInitialValues: boolean)
Parameters
NameTypeDescription
request
RequestInstance | RequestJSON<RequestInstance>
useInitialValues
boolean

Returns

string
On this page