Why the data i get from the useQuery it's undefined on the first render?
So i have this file with my axios request:
And this is in other file where im using useQuery
Why my todosData from usingQuery is undefined at first render and only take the data from resquest if i save the request file?
Is there a way to in first render the todoData render the data from request?
And this is in other file where im using useQuery
Why my todosData from usingQuery is undefined at first render and only take the data from resquest if i save the request file?
Is there a way to in first render the todoData render the data from request?