How to use Update App State with data from database

Hi All,

I use Supabase and have a "Category" table which will be used in 3 pages. Data of Category is quite static, not often to update. But I don't want to make it static in application.

So, I decided to use On Page Load in Home Page (after login). The action is : -
- Query from Supabase, output is CategoryResult.
- Put into App State named "CategoryList".

Its data type is as shown in picture below.

I have problem about action in step 2. It is quite complex. Could any one please guide me or lead me to any video tutorial (if possible)?

Thanks

2
3 replies