{Utils, Actions, React} = require 'nylas-exports' {RetinaImg} = require 'nylas-component-kit' class StreamingSyncActivity extends React.Component constructor: (@props) -> @_timeoutId = null @state = receivingDelta: false shouldComponentUpdate: (nextProps, nextState) => not Utils.isEqualReact(nextProps, @props) or not Utils.isEqualReact(nextState, @state) componentDidMount: => @_unlistener = Actions.longPollReceivedRawDeltasPing.listen(@_onDeltaReceived) componentWillUnmount: => @_unlistener() if @_unlistener clearTimeout(@_timeoutId) if @_timeoutId render: => return false unless @state.receivingDelta