React bindings for live-cache
npm install @live-cache/reactReact bindings for live-cache controllers and stores.
> Disclaimer: This project is under initial development. Breaking changes are made every week.
``bash`
bun add @live-cache/react @live-cache/core
- ContextProvider and useRegisteruseController
- and useJoinControlleruseModify
- – hook that wraps an async function and returns { mutate, loading, error } for UI feedback (e.g. create/update mutations)
`tsx``
import { ContextProvider, useController, useModify } from "@live-cache/react";