Skip to content

Commit

Permalink
Fixes memory leak in the React editor
Browse files Browse the repository at this point in the history
  • Loading branch information
ncordon committed Oct 13, 2023
1 parent 8927807 commit 1b693f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-codemirror-experimental/src/CypherEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const CypherEditor: CypherEditor = React.forwardRef((props, ref) => {
overrideThemeBackgroundColor = false,
schema = {},
lint = true,
...rest
value,
} = props;

const maybeReplMode = onExecute
Expand All @@ -65,7 +65,7 @@ export const CypherEditor: CypherEditor = React.forwardRef((props, ref) => {
basicSetup={false}
// reset to codemirror default and handle via completionKeymap extension
indentWithTab={false}
{...rest}
value={value}
/>
);
});

0 comments on commit 1b693f6

Please sign in to comment.