Posts by Bruno Santa Cruz • 13 points
1 post
-
1
votes1
answer718
viewsQ: useEffect not updating states in the first iteration
I’m using the useEffect to get the data from a table. The problem is that even if I receive the data from the api, the states are not updated in the first iteration, so I have to do two get in the…