StackedRouter: new router simulates app behaviour #45
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -49,11 +49,13 @@ const UnexpectedError: Component<{ error?: any }> = (props) => {
 | 
			
		|||
      <h1>Oh, it is our fault.</h1>
 | 
			
		||||
      <p>There is an unexpected error in our app, and it's not your fault.</p>
 | 
			
		||||
      <p>
 | 
			
		||||
        You can reload to see if this guy is gone. If you meet this guy
 | 
			
		||||
        You can restart the app to see if this guy is gone. If you meet this guy
 | 
			
		||||
        repeatly, please report to us.
 | 
			
		||||
      </p>
 | 
			
		||||
      <div>
 | 
			
		||||
        <Button onClick={() => window.location.reload()}>Reload</Button>
 | 
			
		||||
        <Button onClick={() => (window.location.replace("/"))}>
 | 
			
		||||
          Restart App
 | 
			
		||||
        </Button>
 | 
			
		||||
      </div>
 | 
			
		||||
      <details>
 | 
			
		||||
        <summary>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue