Skip to content

InternalEndpointDataClient

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

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:54

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:55

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:59

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:63

Req

Res

ApiEndpoint<Req, Res>

Req

EndpointDataUpdater<Res>

void

EndpointDataClient.setData


__getSnapshot(cacheKey): EndpointDataSnapshot

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

string

EndpointDataSnapshot


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

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

Req

Res

string

EndpointValidationResult<Req, Res>

void


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

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

string

QueryRefetcher

() => void


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

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

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:85

Res

string

Res

void


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

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

string

EndpointDataListener

() => void