Reactive utilities

startTransition

Edit this page

Replacement

// 1.x
import { startTransition } from "solid-js"
startTransition(() => setSignal(newValue))
// 2.0 — just update the signal; transitions are automatic
setSignal(newValue)
// For pending UI during async revalidation:
import { isPending } from "solid-js"
const pending = () => isPending(() => asyncMemo())

For mutations with optimistic UI, see action().

Report an issue with this page