#Why don't queries wait until authentication until firing?
3 messages · Page 1 of 1 (latest)
I don't think you do. I haven't used (or seen) that pattern before. Where did that come from?
Most auth setups authenticate the user once at the root of the app, and nothing in the app renders if the user isn't authenticated. That way you don't have to authenticate in each component, hook, etc.
Do auth checks on the page level using <Authenticated> components so that all children in the tree are only rendered when authenticated. No need for this overhead.