Skip to content

Commit

Permalink
ui: no need to refresh page after error
Browse files Browse the repository at this point in the history
Previously, if one page crashes on DB Console, all other
pages would show the same error message and the user had to
force a refresh on the browser to be able to see the other pages.
Now only the broken page shows the error and all the other pages
load as expected. The user still needs to force a refresh on
the broken page if they want to retry.

Fixes #97533

Release note (ui change): If a page crashed, a force refresh is
no longer required to be able to see the other pages on DB Console.
  • Loading branch information
maryliag committed May 12, 2023
1 parent 9f6299c commit 2f2b9c4
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -98,7 +98,9 @@ class Layout extends React.Component<LayoutProps & RouteComponentProps> {
<NavigationBar />
</div>
<div ref={this.contentRef} className="layout-panel__content">
<ErrorBoundary>{this.props.children}</ErrorBoundary>
<ErrorBoundary key={this.props.location.pathname}>
{this.props.children}
</ErrorBoundary>
</div>
</div>
</div>
Expand Down

0 comments on commit 2f2b9c4

Please sign in to comment.