tweak(sheet-container): No deferred calls to setState! Will fix perf issues in another patch (Sentry 1525)

This commit is contained in:
Ben Gotow 2015-09-09 15:55:30 -07:00
parent 6f152530d6
commit aa1c11f400

View file

@ -92,7 +92,7 @@ class SheetContainer extends React.Component
window.dispatchEvent(new Event('resize'))
_onStoreChange: =>
_.defer => @setState(@_getStateFromStores())
@setState(@_getStateFromStores())
_getStateFromStores: =>
stack: WorkspaceStore.sheetStack()