How do I add my appstate variable into my API call body?

Database & APIs

I set an app state variable from an text field (search) on change. This is working fine.

I have an API Call to my SupaBase table which is returning the correct respons when I test it.

But when I test, in an test session, the respons is an empty string ( [] ).

I think this is because the appstate is not correctly passed into the API.

What have you tried so far?

I tried to add an variable with the same name as the app state into the API body.
I tried to add the variable as text between brackets ["VARABLE NAME"] but this also doesn't work.

When I "hard code" a search term into the API call body it returns the correct values.

("zoekTerm" is the name of the Appstate from the search field)

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