TanStackT
TanStack3y ago
2 replies
technological-jade

UseQuery data undefined in the components

I get the data undefined at first render and so in the component I cant use it when I want to conditionally render some buttons according to the user.role,
but when refetching it gets there. I also logged it and the user is populated, even in teh devtools says that
image.png
Was this page helpful?