-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from partio-scout/revert-134-bugfix/participa…
…ntlist-count-out-of-sync Revert "Bugfix/participantlist count out of sync"
- Loading branch information
Showing
10 changed files
with
100 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/client/components/ParticipantListPage/containers/ParticipantCountUpdater.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react'; | ||
import { pureShouldComponentUpdate } from '../../../utils'; | ||
|
||
export function getParticipantCountUpdater(participantActions) { | ||
class ParticipantCountUpdater extends React.Component { | ||
shouldComponentUpdate(nextProps, nextState) { | ||
return pureShouldComponentUpdate.call(this, nextProps, nextState); | ||
} | ||
|
||
render() { | ||
participantActions.loadParticipantCount.defer(this.props.filter); | ||
return null; | ||
} | ||
} | ||
|
||
ParticipantCountUpdater.propTypes = { | ||
filter: React.PropTypes.object, | ||
}; | ||
|
||
return ParticipantCountUpdater; | ||
} | ||
|
23 changes: 6 additions & 17 deletions
23
src/client/components/ParticipantListPage/containers/ParticipantListUpdater.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.