Loading problem…
Select the correct mental model.
const [isPending, startTransition] = React.useTransition() function onType(v: string) { setInput(v) startTransition(() => setFiltered(expensive(v))) }