Interface: ErrorHandlingFrontendStore
Defined in: shared/utils/errorHandling.ts:234
Frontend store contract supported by withErrorHandling.
Remarksโ
Provides the minimal surface required to manage loading and error states for UI stores.
Propertiesโ
clearErrorโ
clearError: () => void;
Defined in: shared/utils/errorHandling.ts:236
Clears the current error state before starting an operation.
Returnsโ
void
setErrorโ
setError: (err: string | undefined) => void;
Defined in: shared/utils/errorHandling.ts:238
Persists the latest error message for user feedback.
Parametersโ
errโ
string | undefined
Returnsโ
void
setLoadingโ
setLoading: (loading: boolean) => void;
Defined in: shared/utils/errorHandling.ts:240
Toggles the loading indicator associated with the operation.
Parametersโ
loadingโ
boolean
Returnsโ
void