Skip to main content

ErrorLoader

Components

ErrorLoader()

ErrorLoader(props, context?): ReactNode

An ErrorLoader serves the purpose of displaying an error card with an image and a messagge explaining to the user the error in detail.

Parameters

ParameterType
propsErrorLoaderProps
context?any

Returns

ReactNode

Example

 <ErrorLoader type="script-error" title="Error in akasha app" details={error.message} />

Source

libs/design-system-core/src/components/ErrorLoader/index.tsx:49

Props

ErrorLoaderProps

ErrorLoaderProps: React.PropsWithChildren<object>

Type declaration

MemberTypeDescription
customStylestring-
detailsReact.ReactElement | stringAdditional details about the error
devDetailsReact.ReactElement | stringMessage to be shown when in deveolopment mode
publicImgPathstring-
titlestringThe error title
type"missing-feed-customization" | "missing-saved-items" | "missing-notifications" | "no-connection" | "no-apps" | "network-not-supported" | "no-login" | "script-error" | "not-registered"Error type

Source

libs/design-system-core/src/components/ErrorLoader/index.tsx:4