startTransition
Edit this pageSolid 2.0 —
startTransition has been removed in Solid 2.0. Transitions are now a built-in scheduling concept managed by the runtime. Use <Loading> boundaries and isPending() for transition UI.
Replacement
// 1.ximport { startTransition } from "solid-js"startTransition(() => setSignal(newValue))
// 2.0 — just update the signal; transitions are automaticsetSignal(newValue)
// For pending UI during async revalidation:import { isPending } from "solid-js"const pending = () => isPending(() => asyncMemo())For mutations with optimistic UI, see action().