Autocomplete options not up to date

Widgets & Design

Hello FF community,
I am trying to use the autocomplete feature of the textfield component. When the text changes I want to load the autocomplete options from my backend. I can see that they are fetched correctly using the flutter flow debugging panel. So far so good, but:
The options being displayed are not up do date, they are not equivalent to the list of options fetched from the backend. By having a closer look I can see that the diplayed options are the ones that were made the last API options fetch call but not the current one. So the options being displayed are always the ones that were fetched before, they are one fetch behind. Thats because the rendering of the options is somehow finished before the backend fetched the new ones.

Is there any chance to solve that problem? I need up to date options in my auto completion.


Greetings and thanks in advance :)

What have you tried so far?

Nothing really beacuse I have no clue what the cause could be.

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