Skip to content

Commit

Permalink
ensure a fetch on mounting for post-list-fetcher
Browse files Browse the repository at this point in the history
This should address stale data that can otherwise be shown in the desktop app.
  • Loading branch information
rralian committed Feb 1, 2016
1 parent 030114f commit 9528971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/components/post-list-fetcher/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ PostListFetcher = React.createClass( {

componentDidMount: function() {
var postListStore = postListStoreFactory( this.props.postListStoreId );
this._poller = pollers.add( postListStore, actions.fetchUpdated, { interval: 60000, leading: false } );
this._poller = pollers.add( postListStore, actions.fetchUpdated, { interval: 60000, leading: true } );
},

componentWillUnmount: function() {
Expand Down

0 comments on commit 9528971

Please sign in to comment.