We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb1006c commit 5dc3e9eCopy full SHA for 5dc3e9e
src/app/components/sandbox/CodeEditor/CodeMirror.js
@@ -188,12 +188,16 @@ const handleError = (
188
}
189
};
190
191
+type State = {
192
+ fuzzySearchEnabled: boolean,
193
+};
194
+
195
export default class CodeEditor extends React.PureComponent<Props, State> {
196
state = {
197
fuzzySearchEnabled: false,
198
199
- shouldComponentUpdate(nextProps: Props) {
200
+ shouldComponentUpdate(nextProps: Props, nextState: State) {
201
if (nextState.fuzzySearchEnabled !== this.state.fuzzySearchEnabled) {
202
return true;
203
0 commit comments