ErrorPage (component)
June 7, 2016 ยท View on GitHub
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

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