Skip to content

EndpointDataClient

Defined in: wp-typia-rest/src/react-client-types.ts:49

Shared cache client used by the React query and mutation helpers.

The client owns normalized cache keys, invalidation, and optimistic cache writes without exposing transport implementation details to components.

invalidate<Req, Res>(endpoint, request?): void

Defined in: wp-typia-rest/src/react-client-types.ts:50

Req

Res

ApiEndpoint<Req, Res>

Req

void


refetch<Req, Res>(endpoint, request?): Promise<void>

Defined in: wp-typia-rest/src/react-client-types.ts:51

Req

Res

ApiEndpoint<Req, Res>

Req

Promise<void>


getData<Req, Res>(endpoint, request): Res | undefined

Defined in: wp-typia-rest/src/react-client-types.ts:55

Req

Res

ApiEndpoint<Req, Res>

Req

Res | undefined


setData<Req, Res>(endpoint, request, next): void

Defined in: wp-typia-rest/src/react-client-types.ts:59

Req

Res

ApiEndpoint<Req, Res>

Req

EndpointDataUpdater<Res>

void