app: wrap provider data in Map to avoid store (#28765)

This commit is contained in:
Brendan Allan
2026-05-22 12:23:16 +08:00
committed by GitHub
parent 9f06accfb4
commit 1f0390cfbb
18 changed files with 80 additions and 55 deletions
@@ -35,7 +35,7 @@ export const DialogSelectProvider: Component = () => {
key={(x) => x?.id}
items={() => {
language.locale()
return [{ id: CUSTOM_ID, name: customLabel() }, ...providers.all()]
return [{ id: CUSTOM_ID, name: customLabel() }, ...providers.all().values()]
}}
filterKeys={["id", "name"]}
groupBy={(x) => (popularProviders.includes(x.id) ? popularGroup() : otherGroup())}