Component does not auto-initialize on page load

Troubleshooting

I am observing some strange behaviour, and I wonder if this is normal.

I have a property listing page with a component inside containing owner's name and profile picture. The page logic is as follows:

- on page load the page passes the owner ID to the component as a parameter
- component queries relevant info from Supabase and displays it

Component query is set to happen on it's (component's) initialization, which, I suppose, should happen on page load.

Now when the page loads in Preview mode (same for FF preview app on my Android phone and on a Web published test site), this particular component displays red Null value error field. The field itself is around 50 mobile pages high, but stuff below the component loads fine, including a Google map. The component itself initializes only when tapping on a screen.

There are absolutely no errors on code compilation, no warnings or advisories in FF.

Is this normal behaviour? If so, what is the best practice of ensuring the component starts and loads the necessary data on page load?

What have you tried so far?

Checked if there are additional component initialization settings. Nothing found.

Did you check FlutterFlow's Documentation for this topic?
Yes
2
1 reply