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"
Source
Package
Parameters
getRequestKey(request: RequestInstance | RequestJSON<RequestInstance>, useInitialValues: boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| request | | |
| useInitialValues | |
Returns
string