Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vrama628 committed Jun 22, 2024
1 parent dfe94d9 commit 78b60a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/wrapper-react/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ export class MonacoEditorReactComp<T extends MonacoEditorProps = MonacoEditorPro

override async componentDidUpdate(prevProps: T) {
this.logger.debug('Called: componentDidUpdate');

await this.isRestarting;

const { userConfig } = this.props;
const { wrapper } = this;

Expand Down
2 changes: 1 addition & 1 deletion packages/wrapper-react/test/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { MonacoEditorReactComp } from '@typefox/monaco-editor-react';
import { UserConfig } from 'monaco-editor-wrapper';

describe('Test MonacoEditorReactComp', () => {
test('test rerender', async () => {
test('rerender', async () => {
const userConfig: UserConfig = {
wrapperConfig: {
editorAppConfig: {
Expand Down

0 comments on commit 78b60a3

Please sign in to comment.