Re-poll doFetchFeaturedUris every so often #1090

Closed
daovist wants to merge 1 commit from repoll-featured-uris into master

View file

@ -70,6 +70,13 @@ export function doResolveUri(uri) {
}
export function doFetchFeaturedUris() {
return dispatch => {
dispatch(doFetchFeaturedUrisNow());
setInterval(() => dispatch(doFetchFeaturedUrisNow()), 40000);
}
}
export function doFetchFeaturedUrisNow() {
liamcardenas commented 2018-03-27 04:18:59 +02:00 (Migrated from github.com)
Review

Setting an interval like this is absolutely correct, but it would be better if you found the place that originally triggers doFetchFeaturedUris and set the interval there instead of creating two actions.

Setting an interval like this is absolutely correct, but it would be better if you found the place that originally triggers `doFetchFeaturedUris` and set the interval there instead of creating two actions.
return dispatch => {
dispatch({
type: ACTIONS.FETCH_FEATURED_CONTENT_STARTED,