mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Only forceUpdate of EditorComponent on nextTick if it's mounted
This commit is contained in:
@@ -206,7 +206,7 @@ EditorComponent = React.createClass
|
||||
@updateRequested = true
|
||||
process.nextTick =>
|
||||
@updateRequested = false
|
||||
@forceUpdate()
|
||||
@forceUpdate() if @isMounted()
|
||||
|
||||
getRenderedRowRange: ->
|
||||
{editor, lineOverdrawMargin} = @props
|
||||
|
||||
Reference in New Issue
Block a user