Skip to content

AsyncStatePattern

reference
1 min readUpdated

Kind: Interface

Source: atloria-monorepo/libs/parser-core/src/interfaces/state-management.interface.ts

Async state pattern (for React Query, SWR, async Redux)

Properties

PropertyType
states`{
idle: boolean;
loading: boolean;
success: boolean;
error: boolean;

}| |dataField|string| |errorField|string| |loadingField|string| |queryKey|string| |mutationFn|string| |endpoint|string| |hasRetry|boolean| |hasOptimisticUpdate|boolean` |

Was this page helpful?

Download as PDF