UNPKG

@tanstack/react-table

Version:

Headless UI for building powerful tables & datagrids for React.

22 lines (20 loc) 753 B
import { batch, createAtom } from "@tanstack/react-store"; import { renderPhaseReactivity } from "@tanstack/table-core/reactivity"; //#region src/reactivity.ts /** * Creates the table-core reactivity bindings used by the React adapter. * * React stores table state in TanStack Store atoms and leaves options as plain * resolved data because `useTable` synchronizes options during render. The * render-phase preset supplies the live readonly-atom facades and the `commit` * hook; the store primitives are passed in from `@tanstack/react-store` so all * atoms share one store instance with user-provided external atoms. */ function reactReactivity() { return renderPhaseReactivity({ createAtom, batch }); } //#endregion export { reactReactivity };