( oldList: MicrophoneWithDetails[], newList: string[], )
| 85 | } |
| 86 | |
| 87 | function micListChanged( |
| 88 | oldList: MicrophoneWithDetails[], |
| 89 | newList: string[], |
| 90 | ): boolean { |
| 91 | if (oldList.length !== newList.length) return true; |
| 92 | const oldNames = new Set(oldList.map((m) => m.name)); |
| 93 | return newList.some((name) => !oldNames.has(name)); |
| 94 | } |
| 95 | |
| 96 | export function createStableDevicesQuery( |
| 97 | enabled: Accessor<boolean> = () => true, |
no outgoing calls
no test coverage detected