Skip to content
zenui/react-hooks

useOptimisticState

Show the result of an update immediately, run the real request, and roll back if it fails. Works on React 18 without useOptimistic.

Level
Advanced
Since
v2.1.0
import {useOptimisticState} from '@zenuilabs/react-hooks';
Loading demo_

More in Async & Data