# RemoteTree (@salmonui/data-grid/engine/tree-remote)

> The RemoteTree interface of @salmonui/data-grid/engine/tree-remote.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-tree-remote/RemoteTree

```ts
import type { RemoteTree } from '@salmonui/data-grid/engine/tree-remote';
```

Entry index: https://salmonui.dev/docs/reference/data-grid/engine-tree-remote (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine-tree-remote.md).

## Reference

Kind: interface

```ts
interface RemoteTree<Row> {
    readonly dataSource: DataSource<Row>;
    module(options?: TreeOptions<Row>): TreeModule<Row>;
    getLoadError(rowId: RowId): unknown;
    loadMoreRoots(): Promise<boolean>;
    getRootBlocks(): RemoteTreeRootBlocks;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `dataSource` | `readonly dataSource: DataSource<Row>;` |  | The engine's `dataSource` (`mode: 'remote'`). |
| `module` | `module(options?: TreeOptions<Row>): TreeModule<Row>;` |  | The tree module to register instead of `createTreeModule(options)` (call once per engine). |
| `getLoadError` | `getLoadError(rowId: RowId): unknown;` |  | Error of the last failed child load of a row, or undefined. |
| `loadMoreRoots` | `loadMoreRoots(): Promise<boolean>;` |  | `rootBlocks`: reads the next block of root rows and appends it (one read at a time). Resolves true when rows were appended; false when there is nothing to read, a read is in flight, or a query change superseded it. Rejects when the read fails. |
| `getRootBlocks` | `getRootBlocks(): RemoteTreeRootBlocks;` |  | `rootBlocks` state (`hasMore` is false without `rootBlocks`). |
