File size: 753 Bytes
5144199
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 };