File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -332,6 +332,14 @@ function receivePosts(subreddit, json) {
332
332
}
333
333
}
334
334
335
+ export const INVALIDATE_SUBREDDIT = ' INVALIDATE_SUBREDDIT'
336
+ export function invalidateSubreddit (subreddit ) {
337
+ return {
338
+ type: INVALIDATE_SUBREDDIT ,
339
+ subreddit
340
+ }
341
+ }
342
+
335
343
// Meet our first thunk action creator!
336
344
// Though its insides are different, you would use it just like any other action creator:
337
345
// store.dispatch(fetchPosts('reactjs'))
@@ -442,6 +450,14 @@ function receivePosts(subreddit, json) {
442
450
}
443
451
}
444
452
453
+ export const INVALIDATE_SUBREDDIT = ' INVALIDATE_SUBREDDIT'
454
+ export function invalidateSubreddit (subreddit ) {
455
+ return {
456
+ type: INVALIDATE_SUBREDDIT ,
457
+ subreddit
458
+ }
459
+ }
460
+
445
461
function fetchPosts (subreddit ) {
446
462
return dispatch => {
447
463
dispatch (requestPosts (subreddit))
You can’t perform that action at this time.
0 commit comments