Skip to main content
Version: v9.0.0

getRequestIdentity

Identity of the requested resource - method and endpoint with resolved params, without the query params. Two requests with the same identity ask for the same resource (e.g. another page or filter of one list).


Import
import { getRequestIdentity } from "@hyper-fetch/react"

Parameters​

getRequestIdentity(request: Pick<RequestInstance, endpoint | scope | method>)
Parameters
NameTypeDescription
request
Pick<RequestInstance, endpoint | scope | method>

Returns​

string