set interval for fetching featured uris
This commit is contained in:
parent
52f2d6140d
commit
032f112ae1
1 changed files with 7 additions and 0 deletions
|
@ -70,6 +70,13 @@ export function doResolveUri(uri) {
|
|||
}
|
||||
|
||||
export function doFetchFeaturedUris() {
|
||||
return dispatch => {
|
||||
dispatch(doFetchFeaturedUrisNow());
|
||||
setInterval(() => dispatch(doFetchFeaturedUrisNow()), 40000);
|
||||
}
|
||||
}
|
||||
|
||||
export function doFetchFeaturedUrisNow() {
|
||||
return dispatch => {
|
||||
dispatch({
|
||||
type: ACTIONS.FETCH_FEATURED_CONTENT_STARTED,
|
||||
|
|
Loading…
Add table
Reference in a new issue