Skip to main content

Interface: ErrorHandlingFrontendStore

Defined in: shared/utils/errorHandling.ts:181

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

Clears the current error state before starting an operation.

Returnsโ€‹

void


setErrorโ€‹

setError: (err: string | undefined) => void

Defined in: shared/utils/errorHandling.ts:185

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

Toggles the loading indicator associated with the operation.

Parametersโ€‹

loadingโ€‹

boolean

Returnsโ€‹

void