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

[Editor] do not update highlight line by default #6590

Closed
wants to merge 2 commits into from

Conversation

jasonLaster
Copy link
Contributor

Fixes Issue: #6588

Summary of Changes

Previously we were updating the highlight line if two conditions were not met. Now, we update it if those conditions are not met and a some others are. This will prevent spurious re-renders.

return true;
if (
editorLine !== this.previousEditorLine ||
this.props.selectedSource !== selectedSource
Copy link
Contributor

@bomsy bomsy Jul 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with this.props.selectedSource !== selectedSource,it seems to make the highlight flash really quick, that sometimes you might not see the line highlighted.

@jasonLaster
Copy link
Contributor Author

We might not need this once #6601 lands

@bomsy
Copy link
Contributor

bomsy commented Jul 6, 2018

is this still needed?

@jasonLaster
Copy link
Contributor Author

jasonLaster commented Jul 6, 2018 via email

@bomsy bomsy closed this Jul 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants