Skip to content

perf: convert synchronous option selectors to async (DeviceSelector, SocSelector, DeviceModal) #377

@coderabbitai

Description

@coderabbitai

Several selectors preload up to 1000 options synchronously, which is inefficient. They should be converted to async selectors.

Files with TODO comments:

  • src/app/profile/components/DeviceSelector.tsx line 44 — preloads 1000 device options
  • src/app/profile/components/SocSelector.tsx line 31 — preloads 1000 SoC options
  • src/app/admin/devices/components/DeviceModal.tsx line 23 — preloads 1000 SoC options

Action required:
Replace preloaded queries with async multi-select components similar to the AsyncDeviceFilterSelect / AsyncSocFilterSelect pattern introduced in PR #375.


Requested by @Producdevity — related to PR #375

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions