Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit dbfb376

Browse files
darkwingjasonLaster
authored andcommitted
Prevent HighlightLine / shouldComponentUpdate warning (#5805)
1 parent 6c58893 commit dbfb376

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Editor/HighlightLine.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
44

55
// @flow
6-
import { PureComponent } from "react";
6+
import { Component } from "react";
77
import { toEditorLine } from "../../utils/editor";
88
import { getDocument, hasDocument } from "../../utils/editor/source-documents";
99
import { isLoaded } from "../../utils/source";
@@ -45,7 +45,7 @@ function isDocumentReady(selectedSource, selectedLocation) {
4545
);
4646
}
4747

48-
export class HighlightLine extends PureComponent<Props> {
48+
export class HighlightLine extends Component<Props> {
4949
isStepping: boolean = false;
5050
previousEditorLine: ?number = null;
5151

0 commit comments

Comments
 (0)