Unable to update component state

Actions & Logic

I have a page "Add featured artists" which contains a component "ArtistSearch".

Within the component, I query a list of artists, the intention being that when they click "add artist" from the list of results, a component state that is a list of artist documents gets updated. When I proceed from the "Add featured artists" page to the next page, I can then pass this list of artists as a page parameter.

I have created the component state within the component, but when I clicked the "add" button and go to set the action to update the component state, it is unselectable to me, with the hint that I first need to add a component state variable first. Except...I have created it. I just don't seem to be able to access it.

What am I missing here?

TIA

What have you tried so far?

Created component variable state, set properly as a list of documents of type Artist.

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