EndpointDataClient
Defined in: wp-typia-rest/src/react-client-types.ts:49
Shared cache client used by the React query and mutation helpers.
Remarks
Section titled “Remarks”The client owns normalized cache keys, invalidation, and optimistic cache writes without exposing transport implementation details to components.
Extended by
Section titled “Extended by”Methods
Section titled “Methods”invalidate()
Section titled “invalidate()”invalidate<
Req,Res>(endpoint,request?):void
Defined in: wp-typia-rest/src/react-client-types.ts:50
Type Parameters
Section titled “Type Parameters”Req
Res
Parameters
Section titled “Parameters”endpoint
Section titled “endpoint”ApiEndpoint<Req, Res>
request?
Section titled “request?”Req
Returns
Section titled “Returns”void
refetch()
Section titled “refetch()”refetch<
Req,Res>(endpoint,request?):Promise<void>
Defined in: wp-typia-rest/src/react-client-types.ts:51
Type Parameters
Section titled “Type Parameters”Req
Res
Parameters
Section titled “Parameters”endpoint
Section titled “endpoint”ApiEndpoint<Req, Res>
request?
Section titled “request?”Req
Returns
Section titled “Returns”Promise<void>
getData()
Section titled “getData()”getData<
Req,Res>(endpoint,request):Res|undefined
Defined in: wp-typia-rest/src/react-client-types.ts:55
Type Parameters
Section titled “Type Parameters”Req
Res
Parameters
Section titled “Parameters”endpoint
Section titled “endpoint”ApiEndpoint<Req, Res>
request
Section titled “request”Req
Returns
Section titled “Returns”Res | undefined
setData()
Section titled “setData()”setData<
Req,Res>(endpoint,request,next):void
Defined in: wp-typia-rest/src/react-client-types.ts:59
Type Parameters
Section titled “Type Parameters”Req
Res
Parameters
Section titled “Parameters”endpoint
Section titled “endpoint”ApiEndpoint<Req, Res>
request
Section titled “request”Req
EndpointDataUpdater<Res>
Returns
Section titled “Returns”void