Show disappointed elephant if web UI crashes (#10275)
* Do not crash the whole UI when loading an invalid column * Add error boundary component to catch Web UI crashes * Add stack trace on supported browsers * Add component stack info, pre-format everything for github * Make “Reload” a clickable link that calls window.location.reload() * Remove elephant friend from error boundary, make title stand out more * Simplify error boundary to only a graphic
This commit is contained in:
		
					parent
					
						
							
								ff565524aa
							
						
					
				
			
			
				commit
				
					
						c20d096e6a
					
				
			
		
					 3 changed files with 48 additions and 1 deletions
				
			
		|  | @ -53,6 +53,11 @@ class Bundle extends React.PureComponent { | |||
|     const { fetchComponent, onFetch, onFetchSuccess, onFetchFail, renderDelay } = props || this.props; | ||||
|     const cachedMod = Bundle.cache.get(fetchComponent); | ||||
| 
 | ||||
|     if (fetchComponent === undefined) { | ||||
|       this.setState({ mod: null }); | ||||
|       return Promise.resolve(); | ||||
|     } | ||||
| 
 | ||||
|     onFetch(); | ||||
| 
 | ||||
|     if (cachedMod) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue