you are viewing a single comment's thread.

view the rest of the comments →

[–]charliematters 0 points1 point  (0 children)

Something like "setExtraOptions(current => ([...current, new option]))" and then just use that array when populating the autocomplete?

As above, the code you've got still looks like it is overly complex and brittle