TRPC & ReactQuery: How to check if logged in

Hi Guys, how would you check if the current User is logged in? I tried creating a Query which would return a Boolean, extract it into a Component and then conditionally render the Child or a NavitgateTo Component but that resulted in endless re-renders. I don't have the Code right now but it was just a useQuery which would check for isSuccess and data.loggedIn. Thanks in advance!
1 Reply
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server