DEV Community

Discussion on: Building custom hooks in React to fetch Data

Collapse
slimani_21 profile image
Slimani Mohammed

Thanks for the article. I think it would be better to set the error to null before fetching so that one error in fetching won't stay for all future fetch calls.