Skip to content

Commit

Permalink
chore: Demo broken page (#2453)
Browse files Browse the repository at this point in the history
* Demo broken page
  • Loading branch information
kyle-ssg authored Jul 18, 2023
1 parent 10719eb commit 61001ef
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions frontend/web/components/pages/BrokenPage.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
import { FC } from 'react' // we need this to make JSX compile
import {FC, useEffect} from 'react'
import ErrorMessage from "components/ErrorMessage"; // we need this to make JSX compile

type BrokenPageType = {}

const BrokenPage: FC<BrokenPageType> = ({}) => {
throw new Error('An example error')
return <></>
useEffect(()=>{
setTimeout(()=>{
throw new Error("An example error")
},0)
},[])
return <div
data-test='features-page'
id='features-page'
className='app-container container'
>
<ErrorMessage error={"An example error"}/>
</div>
}

export default BrokenPage

3 comments on commit 61001ef

@vercel
Copy link

@vercel vercel bot commented on 61001ef Jul 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 61001ef Jul 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 61001ef Jul 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs-flagsmith.vercel.app
docs.flagsmith.com
docs.bullet-train.io
docs-git-main-flagsmith.vercel.app

Please sign in to comment.