Skip to content
Source
Sign inSign up
TanStack/table

feat(solid-table): move to Solid 2 (v10) #6648

Openryansolid(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/6648/headopened

Showing 216 changed files with 18 additions and 1 deletion (loading 212).

x
0 of 216 viewed, 216 left
1 addition and 1 deletion.changeset/config.jsonModified
View file
@@ -9,7 +9,7 @@
"baseBranch": "main",
"updateInternalDependencies": "patch",
"fixed": [],
- "linked": [["@tanstack/*"]],
+ "linked": [["@tanstack/*", "!@tanstack/solid-table"]],
"ignore": [],
"privatePackages": { "version": false, "tag": false },
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
10 additions and 0 deletions.changeset/solid-table-solid-2.mdAdded
View file
@@ -0,0 +1,10 @@
+---
+'@tanstack/solid-table': major
+---
+​
+Move `@tanstack/solid-table` to Solid 2. The adapter now requires `solid-js` and `@solidjs/web` 2.0. Solid 1 apps stay on v9.
+​
+- Table state atoms are Solid 2 signals and memos, so reads track in JSX, memos and effects as before. Writes are applied when Solid flushes, like any Solid 2 write. Table APIs use updater functions, so several updates in one tick compose.
+- `FlexRender` calls cell, header and footer templates where they render, so their reads are tracked and a template updates when what it reads changes. Templates are typed as Solid 2's `Element`.
+- A Solid store array passed as `data` (for example Solid Query v6 data, which updates in place) updates the table when its items change.
+- `createTableHook` contexts use Solid 2 providers. `useHeaderContext()` returns a view of the header that carries the pre-bound header components, so a header and its footer no longer overwrite each other's components.
7 additions and 0 deletions.changeset/table-core-merge-options.mdAdded
View file
@@ -0,0 +1,7 @@
+---
+'@tanstack/table-core': patch
+---
+​