Data-source reference
View as MarkdownData-source types and factories are exported from @sapporta/grid. A grid
source resolves one level source for every materialized path. The runtime then
uses that source for display state, optional queries, and optional writes.
Choose the reference that matches the coding task:
- Data-source contracts and state
for
GridDataSource,LevelDataSource, snapshots, loading and error state, query capabilities, and source lifecycle. - Runtime data access for
GridLevelRuntime.data, query calls, subscriptions, and React observation. - Data-source writes and reconciliation for writable sources, level mutation methods, and authoritative results.
- In-memory and REST data sources for the built-in local and remote source factories and query-state ownership.
Start with the Data sources guide when choosing between local, remote, and custom ownership.