(prevProps)
| 20 | } |
| 21 | |
| 22 | componentDidUpdate(prevProps) { |
| 23 | if (prevProps.selectedSubreddit !== this.props.selectedSubreddit) { |
| 24 | const { dispatch, selectedSubreddit } = this.props |
| 25 | dispatch(fetchPostsIfNeeded(selectedSubreddit)) |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | handleChange = nextSubreddit => { |
| 30 | this.props.dispatch(selectSubreddit(nextSubreddit)) |
nothing calls this directly
no test coverage detected