             @setState
                 currentSubmit: if @props.submits then @props.submits[@props.submits.length - 1] else null
                 currentDiff: [undefined, undefined]
+            @props.setCurrentSubmit?(@state.currentSubmit)
         else
             newState =
                 currentSubmit: null

        @state =
            currentSubmit: if @props.submits then @props.submits[@props.submits.length - 1] else null
            currentDiff: [undefined, undefined]
        props.setCurrentSubmit?(@state.currentSubmit)
        @setCurrentSubmit = @setCurrentSubmit.bind this
        @setCurrentDiff = @setCurrentDiff.bind this


                    newState.currentSubmit = submit
            if not deepEqual(newState, @state)
                @setState(newState)
            @props.setCurrentSubmit?(@state.currentSubmit)

    setCurrentSubmit: (submit) ->
        (e) =>
