May 4, 2022
Which you could fix better by not getting the View involved at all in making API requests and letting the View just render the state coming in on its props (can also include loading, etc.) instead of trying to cram all this stuff into hooks. Hooks get nasty when you try to do this on an enterprise-level project.