diff --git a/docs/data/material/components/material-icons/SearchIcons.js b/docs/data/material/components/material-icons/SearchIcons.js index fc2d1f34e158a5..cd26b2b4ac3e21 100644 --- a/docs/data/material/components/material-icons/SearchIcons.js +++ b/docs/data/material/components/material-icons/SearchIcons.js @@ -480,6 +480,7 @@ function useLatest(value) { export default function SearchIcons() { const [keys, setKeys] = React.useState(null); + const [, startTransition] = React.useTransition(); const [theme, setTheme] = useQueryParameterState('theme', 'Filled'); const [selectedIcon, setSelectedIcon] = useQueryParameterState('selected', ''); const [query, setQuery] = useQueryParameterState('query', ''); @@ -573,7 +574,7 @@ export default function SearchIcons() { setQuery(event.target.value)} + onChange={(event) => startTransition(() => setQuery(event.target.value))} placeholder="Search icons…" inputProps={{ 'aria-label': 'search icons' }} />