DEV Community

Discussion on: the correct way to fetch data with react hooks

nicomartin profile image
Nico Martin Author • Edited on

Hi @mykel ,
Excellent question! In that case I think I would just move the loading logic into a new function that I can then return from the hook as well:

mykel profile image
Michaël Fischer

Thanks for the answer.