Feb 20, 2024
A lot of those assignments come from not using associated types, requiring you to pair each and every state assignment with a variable assignment.
Why are you making another search API call if you already have "allRestaurants"?
For that matter, another state isn't needed. Pass .loaded(accounts) or .loaded(allAccounts) and the correct list of accounts is presented.