Skip to content

Commit 67a81b5

Browse files
committed
feat: separate out legacy table stuff to separate import
1 parent 98c189f commit 67a81b5

690 files changed

Lines changed: 2842 additions & 1399 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/config.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
"label": "Installation",
2222
"to": "installation"
2323
},
24-
{
25-
"label": "Migrating to V8",
26-
"to": "guide/migrating"
27-
},
2824
{
2925
"label": "FAQ",
3026
"to": "faq"
@@ -63,6 +59,14 @@
6359
{
6460
"label": "React Table Adapter",
6561
"to": "framework/react/react-table"
62+
},
63+
{
64+
"label": "Migrating to V9",
65+
"to": "framework/react/guide/migrating"
66+
},
67+
{
68+
"label": "useLegacyTable Guide",
69+
"to": "framework/react/guide/use-legacy-table"
6670
}
6771
]
6872
},

docs/framework/angular/reference/functions/injectTable.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ title: injectTable
99
function injectTable<TFeatures, TData, TSelected>(options, selector): AngularTable<TFeatures, TData, TSelected>;
1010
```
1111

12-
Defined in: [injectTable.ts:96](https://github.com/TanStack/table/blob/main/packages/angular-table/src/injectTable.ts#L96)
12+
Defined in: [injectTable.ts:95](https://github.com/TanStack/table/blob/main/packages/angular-table/src/injectTable.ts#L95)
1313

1414
Creates and returns an Angular-reactive table instance.
1515

1616
The initializer is intentionally re-evaluated whenever any signal read inside it changes.
1717
This is how the adapter keeps the table in sync with Angular's reactivity model.
1818

1919
Because of that behavior, keep expensive/static values (for example `columns`, feature setup, row models)
20-
as stable references outside the initializer, and only read reactive state (`data()`, pagination/filter/sorting signals, etc.)
20+
as stable references outside the initializer, and only read reactive state (`data()`, pagination/filter/sorting signals, etc.)
2121
inside it.
2222

2323
The returned table is also signal-reactive: table state and table APIs are wired for Angular signals, so you can safely consume table methods inside `computed(...)` and `effect(...)`.
@@ -58,7 +58,7 @@ An Angular-reactive TanStack Table instance.
5858
```ts
5959
// Register only the features you need
6060
import {tableFeatures, rowPaginationFeature} from '@tanstack/angular-table';
61-
const _features = tableFeatures({
61+
const _features = tableFeatures({
6262
rowPaginationFeature,
6363
// ...all other features you need
6464
})
@@ -83,7 +83,7 @@ const columnHelper = createColumnHelper<typeof _features, MyData>();
8383
const columns = columnHelper.columns([
8484
columnHelper.accessor(...),
8585
// ...other columns
86-
])
86+
])
8787
```
8888
3. Create the table instance with `injectTable`
8989
```ts

docs/framework/angular/reference/type-aliases/AngularTable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: AngularTable
99
type AngularTable<TFeatures, TData, TSelected> = Table<TFeatures, TData> & object;
1010
```
1111

12-
Defined in: [injectTable.ts:22](https://github.com/TanStack/table/blob/main/packages/angular-table/src/injectTable.ts#L22)
12+
Defined in: [injectTable.ts:21](https://github.com/TanStack/table/blob/main/packages/angular-table/src/injectTable.ts#L21)
1313

1414
## Type Declaration
1515

0 commit comments

Comments
 (0)