outsparkled
09/12/2022, 2:10 PMrp_st
09/12/2022, 2:27 PMrp_st
09/12/2022, 2:28 PMporcellus
09/12/2022, 2:28 PMporcellus
09/12/2022, 2:29 PMporcellus
09/12/2022, 2:35 PMSessionAuth
with requireAuth=true
then the component will only render after the session has been loaded (and exists). You could use your own wrappers around the component too if you have more complex requirements.
Specific to react-query, I think it takes an enabled
option you can set to false while the session is loading.outsparkled
09/12/2022, 3:00 PMporcellus
09/12/2022, 3:00 PMoutsparkled
09/12/2022, 3:01 PMporcellus
09/12/2022, 3:01 PMrp_st
09/12/2022, 3:34 PM