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

2 Replies
correct-apricotOP•3y ago

correct-apricotOP•3y ago
sorted, I wasnt putting the columns in the dependencies array