Skip to content

InternalEndpointDataClient

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

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

EndpointDataClient.invalidate


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>

EndpointDataClient.refetch


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

EndpointDataClient.getData


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

EndpointDataClient.setData


__getSnapshot(cacheKey): EndpointDataSnapshot

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

string

EndpointDataSnapshot


__publishValidation<Req, Res>(cacheKey, validation): void

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

Req

Res

string

EndpointValidationResult<Req, Res>

void


__registerRefetcher(cacheKey, refetcher): () => void

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

string

QueryRefetcher

() => void


__runQuery<Req, Res>(cacheKey, execute, options): Promise<EndpointValidationResult<Req, Res>>

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

Req

Res

string

() => Promise<EndpointValidationResult<Req, Res>>

boolean

number

Promise<EndpointValidationResult<Req, Res>>


__seedData<Res>(cacheKey, data): void

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

Res

string

Res

void


__subscribe(cacheKey, listener): () => void

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

string

EndpointDataListener

() => void