useAsyncData weird behavior

Hi guys, I'm experiencing a strange behavior. I'm using async data to call an API. But there is a condition for the component rendering that is calling async data. If user is loggedin then component renders otherwise not. Now problem is that when user log in from modal the async data doesn't await for the response to come infact returns null. Can anyone help me with that. Thanks in advance
Screenshot_from_2024-03-30_15-53-17.png
Screenshot_from_2024-03-30_15-53-03.png
Was this page helpful?