Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Removes double call to checkForUpdates
Browse files Browse the repository at this point in the history
Auditors: @bridiver
  • Loading branch information
NejcZdovc committed Apr 27, 2017
1 parent f179a05 commit 4ec74e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/renderer/components/reduxComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const appStore = require('../../../js/stores/appStoreRenderer')
const ImmutableComponent = require('./immutableComponent')
const React = require('react')
const windowStore = require('../../../js/stores/windowStore')
const debounce = require('../../../js/lib/debounce')

const mergePropsImpl = (stateProps, dispatchProps, ownProps) => {
return Object.assign({}, stateProps, dispatchProps, ownProps)
Expand All @@ -18,7 +19,7 @@ class ReduxComponent extends ImmutableComponent {
super(props)
this.componentType = props.componentType
this.state = buildPropsImpl(props, this.componentType)
this.checkForUpdates = this.checkForUpdates.bind(this)
this.checkForUpdates = debounce(this.checkForUpdates.bind(this), 5)
this.dontCheck = false
}

Expand Down

0 comments on commit 4ec74e8

Please sign in to comment.