Skip to main content
tally-vue binds a Grid from tally-core to a component’s lifecycle and exposes its stores as shallow refs. It renders nothing. You write the markup, and the engine does the querying, view state, mutations and undo. The full rendered component exists only in React.
Vue 3.5 or newer.

Usage

Accounts.vue
useGrid accepts options, a ref or a getter. It creates a Grid, loads it after mount and disposes it when the scope stops. It recreates the grid when schema or source change identity, and when the format context changes. The current view carries over. Reactive proxies are unwrapped before they reach the engine. Loading and subscriptions start after mount, so server rendering produces the initial state without touching the data source.

Composables

Every composable that takes grid accepts a Grid, a ref or a getter, and follows the grid when it is recreated. Derive narrower values with computed.

Composables of your own

A getter lets the grid follow reactive input. Here a new source is built whenever the rows change, and the grid is recreated with the current view.
use-accounts.ts