Interface: ErrorHandlingFrontendStore
Defined in: shared/utils/errorHandling.ts:176
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:178
Clears the current error state before starting an operation.
Returnsโ
void
setError()โ
setError: (
err:string|undefined) =>void
Defined in: shared/utils/errorHandling.ts:180
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:182
Toggles the loading indicator associated with the operation.
Parametersโ
loadingโ
boolean
Returnsโ
void