Function: selectErrorIsLoading()
function selectErrorIsLoading(state: {
clearAllErrors: () => void;
clearError: () => void;
clearStoreError: (store: string) => void;
getOperationLoading: (operation: string) => boolean;
getStoreError: (store: string) => string | undefined;
setError: (error: string | undefined) => void;
setLoading: (loading: boolean) => void;
setOperationLoading: (operation: string, loading: boolean) => void;
setStoreError: (store: string, error: string | undefined) => void;
isLoading: boolean;
lastError: string | undefined;
operationLoading: Record<string, boolean>;
storeErrors: Record<string, string | undefined>;
}): boolean;
Defined in: src/stores/error/selectors.ts:4
Selects the global loading state for error-managed operations.
Parametersโ
stateโ
clearAllErrorsโ
() => void
Clear all errors
clearErrorโ
() => void
Clear global error
clearStoreErrorโ
(store: string) => void
Clear error for specific store
getOperationLoadingโ
(operation: string) => boolean
Get loading state for specific operation
getStoreErrorโ
(store: string) => string | undefined
Get error for specific store
setErrorโ
(error: string | undefined) => void
Set global error message
setLoadingโ
(loading: boolean) => void
Set global loading state
setOperationLoadingโ
(operation: string, loading: boolean) => void
Set loading state for specific operation
setStoreErrorโ
(store: string, error: string | undefined) => void
Set error for specific store
isLoadingโ
boolean
Global loading state
lastErrorโ
string | undefined
Last error message to display
operationLoadingโ
Record<string, boolean>
Loading states for specific operations
storeErrorsโ
Record<string, string | undefined>
Store-specific error states
Returnsโ
boolean