mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-12 19:56:53 +00:00
63a7de402b
Extract the code responsible for announcing pinned track changes (for accessibility) into a well-scoped leaf component. Previously, calling the useScreenReaderAnnounce hook inside StageLayout triggered a re-render of the whole layout subtree. Encapsulating the announcement logic in a narrow component keeps those re-renders local to that leaf.
7 lines
144 B
TypeScript
7 lines
144 B
TypeScript
import { usePinAnnouncements } from '../hooks/usePinAnnouncements'
|
|
|
|
export const PinAnnouncer = () => {
|
|
usePinAnnouncements()
|
|
return null
|
|
}
|