Skip to main content
tally-svelte binds a Grid from tally-core to a component’s lifecycle and exposes its stores as runes and readable stores. 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.
Svelte 5.7 or newer. The package ships rune modules, so your Svelte toolchain compiles it.

Usage

Accounts.svelte
useGrid takes a getter so it can follow props. It creates a Grid, loads it in an effect and disposes it when the component is destroyed. It recreates the grid when schema or source change identity, and when the format context changes. The current view carries over. Snapshots subscribe only while an effect reads them, and read the engine directly otherwise.

API

Every function that takes grid accepts a Grid or a ReactiveGrid. Derive narrower values with $derived.

Modules of your own

The functions work in .svelte.ts modules too, as long as they are called during component setup.
accounts.svelte.ts