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
export const selectSubreddit = createAction(SELECT_SUBREDDIT); | |
export const invalidateSubreddit = createAction(INVALIDATE_SUBREDDIT, function (subreddit) { | |
return { subreddit }; | |
}); | |
export const requestPosts = createAction(REQUEST_POSTS, function (subreddit) { | |
return { subreddit: subreddit }; | |
}); |
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
app.get(routes.employer.main, wrapWithCatch(handlers.getEmployers)); | |
try { | |
doSomething() | |
} catch (e) { | |
console.log(e) | |
} |
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
const initialState = { | |
friends: [ | |
{ | |
id: 1, | |
name: 'Some Guy', | |
starred: false | |
}, { | |
id: 2, | |
name: 'Barack Obama', | |
starred: false |