Trouble with Conditional Rendering Based on Firebase User Attribute on Page Refresh

Troubleshooting

I've set up a condition based on the 'type' attribute of the logged-in user from my Firebase users collection. The issue is that when I refresh the page, the condition doesn't seem to pass. Strangely, it works fine when I navigate through the application. What could be causing this problem? The purpose is to display certain menus on my sidebar depending on the type of user.

What have you tried so far?

I've created a custom function to refresh user data that I call when the page first loads and when the page contains a sidebar.

Did you check FlutterFlow's Documentation for this topic?
No