Perhaps it makes sense to just move this to componentDidMount.