DEV Community

Discussion on: setState in useEffect loops the application

Collapse
 
tkdodo profile image
Dominik D

use react-query and you won't have that problem:

react-query.tanstack.com/