Skip to content

Latest commit

 

History

History
60 lines (35 loc) · 916 Bytes

ErrorPage.md

File metadata and controls

60 lines (35 loc) · 916 Bytes

ErrorPage (component)

Display an error, with messages and actions depending upon the user state. Particularly useful with Relay.Renderer when an error state and retry function are provided.

Props

detailMessage

type: string defaultValue: It's possible that our server are under heavy load, or that your internet connection is slow. Please try again.

error (required)

type: object

isOffline

type: bool defaultValue: false

message

type: string defaultValue: 'Hmm, loading appears to be taking a while.'

offlineMessage

type: string defaultValue: 'Please ensure that you are connected to the internet.'

retry (required)

type: func

style

type: any

Examples

Standard Error Page

Error page

<ErrorPage
  retry={() => {
    console.log('retry')
  }}
/>