ErrorBoundary improvements, StickerCreator logging/resiliency

This commit is contained in:
Scott Nonnenberg 2022-08-19 11:35:40 -07:00 committed by GitHub
parent 0fb45f045d
commit 6dd6a64d6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 67 additions and 19 deletions

View file

@ -5,6 +5,7 @@ import React from 'react';
import { Provider } from 'react-redux';
import type { Store } from 'redux';
import { ErrorBoundary } from '../../components/ErrorBoundary';
import type { PropsType } from '../smart/ConversationView';
import { SmartConversationView } from '../smart/ConversationView';
@ -14,6 +15,16 @@ export const createConversationView = (
props: PropsType
): React.ReactElement => (
<Provider store={store}>
<SmartConversationView {...props} />
<ErrorBoundary
name="createConversationView"
closeView={() => {
window.reduxActions.conversations.showConversation({
conversationId: undefined,
messageId: undefined,
});
}}
>
<SmartConversationView {...props} />
</ErrorBoundary>
</Provider>
);