mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-11-08 07:21:18 +08:00
tweak(sheet-container): No deferred calls to setState! Will fix perf issues in another patch (Sentry 1525)
This commit is contained in:
parent
5535ec43d1
commit
e14e462f62
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ class SheetContainer extends React.Component
|
||||||
window.dispatchEvent(new Event('resize'))
|
window.dispatchEvent(new Event('resize'))
|
||||||
|
|
||||||
_onStoreChange: =>
|
_onStoreChange: =>
|
||||||
_.defer => @setState(@_getStateFromStores())
|
@setState(@_getStateFromStores())
|
||||||
|
|
||||||
_getStateFromStores: =>
|
_getStateFromStores: =>
|
||||||
stack: WorkspaceStore.sheetStack()
|
stack: WorkspaceStore.sheetStack()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue