Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

feat: implement error boundary to ui#458

Merged
OGPoyraz merged 6 commits intomainfrom
feat/error-boundary
Jan 30, 2023
Merged

feat: implement error boundary to ui#458
OGPoyraz merged 6 commits intomainfrom
feat/error-boundary

Conversation

@OGPoyraz
Copy link
Copy Markdown
Member

@OGPoyraz OGPoyraz commented Jan 24, 2023

Overview

Implements error boundary component to desktop UI.
Screenshot 2023-01-24 at 15 01 09

@OGPoyraz OGPoyraz requested a review from a team January 24, 2023 13:58
@OGPoyraz OGPoyraz force-pushed the feat/error-boundary branch from c1306e4 to dd41366 Compare January 24, 2023 14:01
@OGPoyraz OGPoyraz linked an issue Jan 26, 2023 that may be closed by this pull request
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<HashRouter>
class Root extends PureComponent {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I was wondering about this, but apparently PureComponents have to be classes.

🤷‍♂️

Copy link
Copy Markdown
Member Author

@OGPoyraz OGPoyraz Jan 30, 2023

Choose a reason for hiding this comment

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

and there are no equivalent hooks for componentDidCatch & getDerivedStateFromError

@OGPoyraz OGPoyraz merged commit 1325cc5 into main Jan 30, 2023
@OGPoyraz OGPoyraz deleted the feat/error-boundary branch February 1, 2023 07:48
@cryptotavares cryptotavares mentioned this pull request Mar 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create an error boundary and fallback component for React root

2 participants