Best/Correct Way to Hold User Data Across Pages

Database & APIs

I'm using Supabase with Flutterflow and I'm wondering what the best practice is for holding user data locally across the app. For example, in my app, the user's name and location appear on many different pages.

It does seem efficient or dry to query the user on each page it's used (or maybe that is the right way?).

Is the right way to store these attributes in App State variables (and refresh them any time there's an action that updates one of these attributes)?

Also, if this is the best approach, then when do people normally populate these values (maybe after log-in action)?

What have you tried so far?

Querying the DB for the logged in user on every page that displays user profile info.

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