Undefined data returned from useQuery hook
Hello friends!
I am trying to get some users from my back end but I get undefined instead.
Here is the code :
Any ideas?
1 Reply
national-goldOP•3y ago
ok I fixed that by using data: usersData in the first line!