From 6dcd4cbea4f5d55df46084c424696c6b16a2db88 Mon Sep 17 00:00:00 2001 From: riccardoperra Date: Sat, 6 Jun 2026 10:00:23 +0200 Subject: [PATCH 01/10] chore: update examples to use table.store.get() instead of removed table.state --- .../angular/basic-external-atoms/src/app/app.ts | 2 +- .../angular/basic-external-state/src/app/app.ts | 2 +- examples/angular/column-groups/src/app/app.ts | 2 +- examples/angular/column-ordering/src/app/app.ts | 2 +- .../angular/column-pinning-split/src/app/app.ts | 2 +- .../angular/column-pinning-sticky/src/app/app.ts | 2 +- examples/angular/column-pinning/src/app/app.ts | 2 +- .../column-resizing-performant/src/app/app.ts | 2 +- examples/angular/column-resizing/src/app/app.ts | 2 +- examples/angular/column-sizing/src/app/app.ts | 2 +- .../angular/column-visibility/src/app/app.ts | 2 +- .../src/app/components/table-components.ts | 6 +++--- examples/angular/expanding/src/app/app.ts | 2 +- examples/angular/filters-faceted/src/app/app.ts | 2 +- examples/angular/filters-fuzzy/src/app/app.ts | 2 +- examples/angular/filters/src/app/app.ts | 2 +- examples/angular/grouping/src/app/app.ts | 2 +- examples/angular/kitchen-sink/src/app/app.ts | 2 +- examples/angular/pagination/src/app/app.ts | 2 +- examples/angular/row-pinning/src/app/app.ts | 2 +- .../src/app/app.component.ts | 2 +- examples/angular/row-selection/src/app/app.ts | 2 +- examples/angular/sorting/src/app/app.ts | 2 +- examples/angular/virtualized-rows/src/app/app.ts | 2 +- .../angular/with-tanstack-form/src/app/app.ts | 2 +- .../angular/with-tanstack-query/src/app/app.ts | 2 +- examples/solid/basic-external-atoms/src/App.tsx | 2 +- examples/solid/basic-external-state/src/App.tsx | 2 +- examples/solid/column-ordering/src/App.tsx | 2 +- examples/solid/column-pinning-split/src/App.tsx | 2 +- examples/solid/column-pinning-sticky/src/App.tsx | 2 +- examples/solid/column-pinning/src/App.tsx | 2 +- .../solid/column-resizing-performant/src/App.tsx | 2 +- examples/solid/column-resizing/src/App.tsx | 4 ++-- examples/solid/column-sizing/src/App.tsx | 4 ++-- examples/solid/column-visibility/src/App.tsx | 2 +- .../src/components/table-components.tsx | 2 +- examples/solid/expanding/src/App.tsx | 8 ++++---- examples/solid/filters-faceted/src/App.tsx | 10 +++++----- examples/solid/filters-fuzzy/src/App.tsx | 14 +++++++------- examples/solid/filters/src/App.tsx | 10 +++++----- examples/solid/grouping/src/App.tsx | 8 ++++---- examples/solid/kitchen-sink/src/App.tsx | 16 ++++++++-------- examples/solid/pagination/src/App.tsx | 8 ++++---- examples/solid/row-pinning/src/App.tsx | 8 ++++---- examples/solid/row-selection/src/App.tsx | 12 ++++++------ examples/solid/sorting/src/App.tsx | 2 +- examples/solid/virtualized-rows/src/App.tsx | 2 +- examples/solid/with-tanstack-form/src/App.tsx | 6 +++--- examples/solid/with-tanstack-query/src/App.tsx | 2 +- .../src/components/table.tsx | 6 +++--- examples/vue/basic-external-atoms/src/App.tsx | 2 +- examples/vue/basic-external-state/src/App.tsx | 8 ++++---- examples/vue/column-ordering/src/App.vue | 4 ++-- examples/vue/column-pinning-split/src/App.vue | 6 +++--- examples/vue/column-pinning-sticky/src/App.vue | 6 +++--- examples/vue/column-pinning/src/App.vue | 4 ++-- .../vue/column-resizing-performant/src/App.vue | 6 +++--- examples/vue/column-resizing/src/App.vue | 6 +++--- examples/vue/column-sizing/src/App.vue | 6 +++--- examples/vue/column-visibility/src/App.tsx | 2 +- examples/vue/expanding/src/App.tsx | 8 ++++---- examples/vue/filters-faceted/src/App.vue | 6 +++--- examples/vue/filters-fuzzy/src/App.vue | 6 +++--- examples/vue/filters/src/App.vue | 8 ++++---- examples/vue/grouping/src/App.vue | 6 +++--- examples/vue/kitchen-sink/src/App.vue | 16 ++++++++-------- examples/vue/pagination/src/App.vue | 6 +++--- examples/vue/row-pinning/src/App.vue | 6 +++--- examples/vue/sorting/src/App.vue | 2 +- examples/vue/with-tanstack-form/src/App.vue | 6 +++--- examples/vue/with-tanstack-query/src/App.tsx | 2 +- 72 files changed, 158 insertions(+), 158 deletions(-) diff --git a/examples/angular/basic-external-atoms/src/app/app.ts b/examples/angular/basic-external-atoms/src/app/app.ts index 667723c55b..b092aee133 100644 --- a/examples/angular/basic-external-atoms/src/app/app.ts +++ b/examples/angular/basic-external-atoms/src/app/app.ts @@ -101,6 +101,6 @@ export class App { } stringifiedState() { - return JSON.stringify(this.table.state, null, 2) + return JSON.stringify(this.table.store.get(), null, 2) } } diff --git a/examples/angular/basic-external-state/src/app/app.ts b/examples/angular/basic-external-state/src/app/app.ts index 5f6eca2ede..b1b7e58923 100644 --- a/examples/angular/basic-external-state/src/app/app.ts +++ b/examples/angular/basic-external-state/src/app/app.ts @@ -93,7 +93,7 @@ export class App { })) stringifiedState() { - return JSON.stringify(this.table.state, null, 2) + return JSON.stringify(this.table.store.get(), null, 2) } refreshData() { diff --git a/examples/angular/column-groups/src/app/app.ts b/examples/angular/column-groups/src/app/app.ts index 5c2ff96aba..7c9addbb02 100644 --- a/examples/angular/column-groups/src/app/app.ts +++ b/examples/angular/column-groups/src/app/app.ts @@ -76,7 +76,7 @@ export class App { })) stringifiedState() { - return JSON.stringify(this.table.state, null, 2) + return JSON.stringify(this.table.store.get(), null, 2) } refreshData = () => this.data.set(makeData(20)) diff --git a/examples/angular/column-ordering/src/app/app.ts b/examples/angular/column-ordering/src/app/app.ts index 6d8f96b153..ec90e23003 100644 --- a/examples/angular/column-ordering/src/app/app.ts +++ b/examples/angular/column-ordering/src/app/app.ts @@ -102,7 +102,7 @@ export class App { })) stringifiedState() { - return JSON.stringify(this.table.state, null, 2) + return JSON.stringify(this.table.store.get(), null, 2) } randomizeColumns() { diff --git a/examples/angular/column-pinning-split/src/app/app.ts b/examples/angular/column-pinning-split/src/app/app.ts index 1dc47ca067..d10003799d 100644 --- a/examples/angular/column-pinning-split/src/app/app.ts +++ b/examples/angular/column-pinning-split/src/app/app.ts @@ -70,7 +70,7 @@ export class App { this.table.getRowModel().rows.slice(0, 20), ) readonly stringifiedState = computed(() => - JSON.stringify(this.table.state, null, 2), + JSON.stringify(this.table.store.get(), null, 2), ) refreshData = () => this.data.set(makeData(20)) diff --git a/examples/angular/column-pinning-sticky/src/app/app.ts b/examples/angular/column-pinning-sticky/src/app/app.ts index 6b7eb378f3..8af14e6301 100644 --- a/examples/angular/column-pinning-sticky/src/app/app.ts +++ b/examples/angular/column-pinning-sticky/src/app/app.ts @@ -98,7 +98,7 @@ export class App { })) stringifiedState() { - return JSON.stringify(this.table.state, null, 2) + return JSON.stringify(this.table.store.get(), null, 2) } readonly getCommonPinningStyles = ( diff --git a/examples/angular/column-pinning/src/app/app.ts b/examples/angular/column-pinning/src/app/app.ts index 640ad1044d..d5e1f2c59e 100644 --- a/examples/angular/column-pinning/src/app/app.ts +++ b/examples/angular/column-pinning/src/app/app.ts @@ -122,7 +122,7 @@ export class App { })) stringifiedState() { - return JSON.stringify(this.table.state, null, 2) + return JSON.stringify(this.table.store.get(), null, 2) } randomizeColumns() { diff --git a/examples/angular/column-resizing-performant/src/app/app.ts b/examples/angular/column-resizing-performant/src/app/app.ts index 2b8e54fda2..3c2e2711c2 100644 --- a/examples/angular/column-resizing-performant/src/app/app.ts +++ b/examples/angular/column-resizing-performant/src/app/app.ts @@ -112,7 +112,7 @@ export class App { }) readonly stringifiedState = computed(() => - JSON.stringify(this.table.state, null, 2), + JSON.stringify(this.table.store.get(), null, 2), ) refreshData = () => this.data.set(makeData(200)) diff --git a/examples/angular/column-resizing/src/app/app.ts b/examples/angular/column-resizing/src/app/app.ts index e2fe1f27f3..8ff73c18cf 100644 --- a/examples/angular/column-resizing/src/app/app.ts +++ b/examples/angular/column-resizing/src/app/app.ts @@ -94,7 +94,7 @@ export class App { })) stringifiedState() { - return JSON.stringify(this.table.state, null, 2) + return JSON.stringify(this.table.store.get(), null, 2) } setResizeMode(event: Event) { diff --git a/examples/angular/column-sizing/src/app/app.ts b/examples/angular/column-sizing/src/app/app.ts index 24f6f98572..985aef5162 100644 --- a/examples/angular/column-sizing/src/app/app.ts +++ b/examples/angular/column-sizing/src/app/app.ts @@ -71,7 +71,7 @@ export class App { })) stringifiedState() { - return JSON.stringify(this.table.state, null, 2) + return JSON.stringify(this.table.store.get(), null, 2) } refreshData = () => this.data.set(makeData(20)) diff --git a/examples/angular/column-visibility/src/app/app.ts b/examples/angular/column-visibility/src/app/app.ts index 9647f8ac90..f100afb888 100644 --- a/examples/angular/column-visibility/src/app/app.ts +++ b/examples/angular/column-visibility/src/app/app.ts @@ -95,7 +95,7 @@ export class App { })) stringifiedState() { - return JSON.stringify(this.table.state, null, 2) + return JSON.stringify(this.table.store.get(), null, 2) } refreshData = () => this.data.set(makeData(20)) diff --git a/examples/angular/composable-tables/src/app/components/table-components.ts b/examples/angular/composable-tables/src/app/components/table-components.ts index bc6bf88d75..5d7798d45e 100644 --- a/examples/angular/composable-tables/src/app/components/table-components.ts +++ b/examples/angular/composable-tables/src/app/components/table-components.ts @@ -78,7 +78,7 @@ export class RowCount { Page - {{ (table().state.pagination.pageIndex + 1).toLocaleString() }} of + {{ (table().store.get().pagination.pageIndex + 1).toLocaleString() }} of {{ pageCount() }} @@ -88,12 +88,12 @@ export class RowCount { type="number" min="1" [max]="table().getPageCount()" - [value]="table().state.pagination.pageIndex + 1" + [value]="table().store.get().pagination.pageIndex + 1" (change)="onPageChange($event)" />
-
{JSON.stringify(table.state(), null, 2)}
+
{JSON.stringify(table.store.get(), null, 2)}
) } diff --git a/examples/solid/basic-external-state/src/App.tsx b/examples/solid/basic-external-state/src/App.tsx index 6d122dcdd1..078fa23a28 100644 --- a/examples/solid/basic-external-state/src/App.tsx +++ b/examples/solid/basic-external-state/src/App.tsx @@ -204,7 +204,7 @@ function App() {
-
{JSON.stringify(table.state(), null, 2)}
+
{JSON.stringify(table.store.get(), null, 2)}
) } diff --git a/examples/solid/column-ordering/src/App.tsx b/examples/solid/column-ordering/src/App.tsx index 7ab3fb794a..1060a1627f 100644 --- a/examples/solid/column-ordering/src/App.tsx +++ b/examples/solid/column-ordering/src/App.tsx @@ -187,7 +187,7 @@ function App() {
-
{JSON.stringify(table.state(), null, 2)}
+
{JSON.stringify(table.store.get(), null, 2)}
) } diff --git a/examples/solid/column-pinning-split/src/App.tsx b/examples/solid/column-pinning-split/src/App.tsx index 2dfacb6f8e..a3254737a5 100644 --- a/examples/solid/column-pinning-split/src/App.tsx +++ b/examples/solid/column-pinning-split/src/App.tsx @@ -285,7 +285,7 @@ function App() { -
{JSON.stringify(table.state(), null, 2)}
+
{JSON.stringify(table.store.get(), null, 2)}
) } diff --git a/examples/solid/column-pinning-sticky/src/App.tsx b/examples/solid/column-pinning-sticky/src/App.tsx index 69db4f503a..fc79f7b162 100644 --- a/examples/solid/column-pinning-sticky/src/App.tsx +++ b/examples/solid/column-pinning-sticky/src/App.tsx @@ -254,7 +254,7 @@ function App() { -
{JSON.stringify(table.state(), null, 2)}
+
{JSON.stringify(table.store.get(), null, 2)}
) } diff --git a/examples/solid/column-pinning/src/App.tsx b/examples/solid/column-pinning/src/App.tsx index bd481054a7..de5a38ad82 100644 --- a/examples/solid/column-pinning/src/App.tsx +++ b/examples/solid/column-pinning/src/App.tsx @@ -205,7 +205,7 @@ function App() { -
{JSON.stringify(table.state(), null, 2)}
+
{JSON.stringify(table.store.get(), null, 2)}
) } diff --git a/examples/solid/column-resizing-performant/src/App.tsx b/examples/solid/column-resizing-performant/src/App.tsx index 3824caf31b..0b2c493fb7 100644 --- a/examples/solid/column-resizing-performant/src/App.tsx +++ b/examples/solid/column-resizing-performant/src/App.tsx @@ -102,7 +102,7 @@ function App() {
-        {JSON.stringify(table.state(), null, 2)}
+        {JSON.stringify(table.store.get(), null, 2)}
       
({data().length.toLocaleString()} rows)
diff --git a/examples/solid/column-resizing/src/App.tsx b/examples/solid/column-resizing/src/App.tsx index 7cad8c0ddc..59815b1c55 100644 --- a/examples/solid/column-resizing/src/App.tsx +++ b/examples/solid/column-resizing/src/App.tsx @@ -97,7 +97,7 @@ function App() { header: ReturnType[number]['headers'][number], ) => { if (columnResizeMode() === 'onEnd' && header.column.getIsResizing()) { - const delta = table.state().columnResizing.deltaOffset ?? 0 + const delta = table.store.get().columnResizing.deltaOffset ?? 0 const dir = table.options.columnResizeDirection === 'rtl' ? -1 : 1 return `translateX(${dir * delta}px)` } @@ -293,7 +293,7 @@ function App() {
-
{JSON.stringify(table.state(), null, 2)}
+
{JSON.stringify(table.store.get(), null, 2)}
) } diff --git a/examples/solid/column-sizing/src/App.tsx b/examples/solid/column-sizing/src/App.tsx index 6737ad90a5..6f674c0e60 100644 --- a/examples/solid/column-sizing/src/App.tsx +++ b/examples/solid/column-sizing/src/App.tsx @@ -87,7 +87,7 @@ function App() { value={column.getSize()} onInput={(e) => { table.setColumnSizing({ - ...table.state().columnSizing, + ...table.store.get().columnSizing, [column.id]: Number(e.currentTarget.value), }) }} @@ -244,7 +244,7 @@ function App() {
-
{JSON.stringify(table.state(), null, 2)}
+
{JSON.stringify(table.store.get(), null, 2)}
) } diff --git a/examples/solid/column-visibility/src/App.tsx b/examples/solid/column-visibility/src/App.tsx index 7bd660f923..fddfc9adf6 100644 --- a/examples/solid/column-visibility/src/App.tsx +++ b/examples/solid/column-visibility/src/App.tsx @@ -163,7 +163,7 @@ function App() {
-
{JSON.stringify(table.state(), null, 2)}
+
{JSON.stringify(table.store.get(), null, 2)}
) } diff --git a/examples/solid/composable-tables/src/components/table-components.tsx b/examples/solid/composable-tables/src/components/table-components.tsx index 4e562dfc0f..0edd4f3ca9 100644 --- a/examples/solid/composable-tables/src/components/table-components.tsx +++ b/examples/solid/composable-tables/src/components/table-components.tsx @@ -13,7 +13,7 @@ import { useTableContext } from '../hooks/table' export function PaginationControls() { const table = useTableContext() - const pagination = createMemo(() => table.state().pagination) + const pagination = createMemo(() => table.store.get().pagination) return (
{table.getRowModel().rows.length.toLocaleString()} Rows
-
{JSON.stringify(table.state(), null, 2)}
+
{JSON.stringify(table.store.get(), null, 2)}
) } diff --git a/examples/solid/filters-faceted/src/App.tsx b/examples/solid/filters-faceted/src/App.tsx index 983a7791d6..2b6a57aa4d 100644 --- a/examples/solid/filters-faceted/src/App.tsx +++ b/examples/solid/filters-faceted/src/App.tsx @@ -116,7 +116,7 @@ function App() { globalFilterDebouncer.maybeExecute(e.currentTarget.value) } @@ -200,7 +200,7 @@ function App() {
Page
- {(table.state().pagination.pageIndex + 1).toLocaleString()} of{' '} + {(table.store.get().pagination.pageIndex + 1).toLocaleString()} of{' '} {table.getPageCount().toLocaleString()}
@@ -210,7 +210,7 @@ function App() { type="number" min="1" max={table.getPageCount()} - value={table.state().pagination.pageIndex + 1} + value={table.store.get().pagination.pageIndex + 1} onInput={(e) => { const page = e.currentTarget.value ? Number(e.currentTarget.value) - 1 @@ -221,7 +221,7 @@ function App() { /> { const page = e.currentTarget.value ? Number(e.currentTarget.value) - 1 @@ -240,7 +240,7 @@ function App() { /> globalFilterDebouncer.maybeExecute(e.currentTarget.value) } @@ -203,7 +203,7 @@ function App() {
Page
- {(table.state().pagination.pageIndex + 1).toLocaleString()} of{' '} + {(table.store.get().pagination.pageIndex + 1).toLocaleString()} of{' '} {table.getPageCount().toLocaleString()}
@@ -213,7 +213,7 @@ function App() { type="number" min="1" max={table.getPageCount()} - value={table.state().pagination.pageIndex + 1} + value={table.store.get().pagination.pageIndex + 1} onInput={(e) => { const page = e.currentTarget.value ? Number(e.currentTarget.value) - 1 @@ -224,7 +224,7 @@ function App() { /> table.setPageSize(Number(e.currentTarget.value))} > @@ -234,7 +234,7 @@ function App() {
{table.getRowModel().rows.length.toLocaleString()} Rows
-
{JSON.stringify(table.state(), null, 2)}
+
{JSON.stringify(table.store.get(), null, 2)}
) } diff --git a/examples/solid/kitchen-sink/src/App.tsx b/examples/solid/kitchen-sink/src/App.tsx index 3f865c7980..ee8be44c37 100644 --- a/examples/solid/kitchen-sink/src/App.tsx +++ b/examples/solid/kitchen-sink/src/App.tsx @@ -356,7 +356,7 @@ function TableCell(props: { table: AppTable }) { const className = () => { - const groupingActive = props.table.state().grouping.length > 0 + const groupingActive = props.table.store.get().grouping.length > 0 const hasAggregation = !!props.cell.column.columnDef.aggregationFn return !groupingActive ? undefined @@ -555,8 +555,8 @@ function App() { useTanStackTableDevtools(table) const columnSizeVars = createMemo(() => { - void table.state().columnResizing - void table.state().columnSizing + void table.store.get().columnResizing + void table.store.get().columnSizing const colSizes: Record = {} for (const header of table.getFlatHeaders()) { colSizes[`--header-${header.id}-size`] = header.getSize() @@ -581,7 +581,7 @@ function App() {
table.setGlobalFilter(String(value))} class="global-filter-input" placeholder="Fuzzy search all columns..." @@ -718,7 +718,7 @@ function App() {
Page
- {(table.state().pagination.pageIndex + 1).toLocaleString()} of{' '} + {(table.store.get().pagination.pageIndex + 1).toLocaleString()} of{' '} {table.getPageCount().toLocaleString()}
@@ -728,7 +728,7 @@ function App() { type="number" min="1" max={table.getPageCount()} - value={table.state().pagination.pageIndex + 1} + value={table.store.get().pagination.pageIndex + 1} onInput={(e) => { const page = e.currentTarget.value ? Number(e.currentTarget.value) - 1 @@ -739,7 +739,7 @@ function App() { /> { table.setPageSize(Number(e.currentTarget.value)) }} @@ -181,7 +181,7 @@ function MyTable(props: { Showing {table.getRowModel().rows.length.toLocaleString()} of{' '} {table.getRowCount().toLocaleString()} Rows
-
{JSON.stringify(table.state(), null, 2)}
+
{JSON.stringify(table.store.get(), null, 2)}
) } diff --git a/examples/solid/row-pinning/src/App.tsx b/examples/solid/row-pinning/src/App.tsx index 73b0e4c0a2..732239f677 100644 --- a/examples/solid/row-pinning/src/App.tsx +++ b/examples/solid/row-pinning/src/App.tsx @@ -250,7 +250,7 @@ function App() {
Page
- {(table.state().pagination.pageIndex + 1).toLocaleString()} of{' '} + {(table.store.get().pagination.pageIndex + 1).toLocaleString()} of{' '} {table.getPageCount().toLocaleString()}
@@ -260,7 +260,7 @@ function App() { type="number" min="1" max={table.getPageCount()} - value={table.state().pagination.pageIndex + 1} + value={table.store.get().pagination.pageIndex + 1} onInput={(e) => { const page = e.currentTarget.value ? Number(e.currentTarget.value) - 1 @@ -271,7 +271,7 @@ function App() { /> table.setGlobalFilter(e.target.value)} class="summary-panel" placeholder="Search all columns..." @@ -235,7 +235,7 @@ function App() {
Page
- {(table.state().pagination.pageIndex + 1).toLocaleString()} of{' '} + {(table.store.get().pagination.pageIndex + 1).toLocaleString()} of{' '} {table.getPageCount().toLocaleString()}
@@ -245,7 +245,7 @@ function App() { type="number" min="1" max={table.getPageCount()} - value={table.state().pagination.pageIndex + 1} + value={table.store.get().pagination.pageIndex + 1} onInput={(e) => { const page = e.target.value ? Number(e.target.value) - 1 : 0 table.setPageIndex(page) @@ -254,7 +254,7 @@ function App() { /> { table.setPageSize(Number(e.currentTarget.value)) }} diff --git a/examples/solid/with-tanstack-query/src/App.tsx b/examples/solid/with-tanstack-query/src/App.tsx index 6c62534ceb..ca02736802 100644 --- a/examples/solid/with-tanstack-query/src/App.tsx +++ b/examples/solid/with-tanstack-query/src/App.tsx @@ -179,7 +179,7 @@ function App() { Showing {table.getRowModel().rows.length.toLocaleString()} of{' '} {dataQuery.data?.rowCount.toLocaleString()} Rows -
{JSON.stringify(table.state(), null, 2)}
+
{JSON.stringify(table.store.get(), null, 2)}
) } diff --git a/examples/solid/with-tanstack-router/src/components/table.tsx b/examples/solid/with-tanstack-router/src/components/table.tsx index c9b6785f8c..c1a7af62ff 100644 --- a/examples/solid/with-tanstack-router/src/components/table.tsx +++ b/examples/solid/with-tanstack-router/src/components/table.tsx @@ -195,7 +195,7 @@ export default function Table>(
Page
- {(table.state().pagination.pageIndex + 1).toLocaleString()} of{' '} + {(table.store.get().pagination.pageIndex + 1).toLocaleString()} of{' '} {table.getPageCount().toLocaleString()}
@@ -203,7 +203,7 @@ export default function Table>( | Go to page: { const page = e.currentTarget.value ? Number(e.currentTarget.value) - 1 @@ -214,7 +214,7 @@ export default function Table>( />
-
{JSON.stringify(table.state, null, 2)}
+
{JSON.stringify(table.store.get(), null, 2)}
) }, diff --git a/examples/vue/basic-external-state/src/App.tsx b/examples/vue/basic-external-state/src/App.tsx index 650e418f79..976e8aa9d1 100644 --- a/examples/vue/basic-external-state/src/App.tsx +++ b/examples/vue/basic-external-state/src/App.tsx @@ -205,7 +205,7 @@ export default defineComponent({
Page
- {(table.state.pagination.pageIndex + 1).toLocaleString()} of{' '} + {(table.store.get().pagination.pageIndex + 1).toLocaleString()} of{' '} {table.getPageCount().toLocaleString()}
@@ -215,7 +215,7 @@ export default defineComponent({ type="number" min="1" max={table.getPageCount()} - value={table.state.pagination.pageIndex + 1} + value={table.store.get().pagination.pageIndex + 1} onInput={(event: Event) => { const target = event.currentTarget as HTMLInputElement const page = target.value ? Number(target.value) - 1 : 0 @@ -225,7 +225,7 @@ export default defineComponent({ />
-
{JSON.stringify(table.state, null, 2)}
+
{JSON.stringify(table.store.get(), null, 2)}
) }, diff --git a/examples/vue/column-ordering/src/App.vue b/examples/vue/column-ordering/src/App.vue index f55bd611f3..fa4a61823a 100644 --- a/examples/vue/column-ordering/src/App.vue +++ b/examples/vue/column-ordering/src/App.vue @@ -107,7 +107,7 @@ const randomizeColumns = () => { function toggleColumnVisibility(column: Column) { table.setColumnVisibility({ - ...table.state.columnVisibility, + ...table.store.get().columnVisibility, [column.id]: !column.getIsVisible(), }) } @@ -201,7 +201,7 @@ function toggleAllColumnsVisibility() { -
{{ JSON.stringify(table.state.columnOrder, null, 2) }}
+
{{ JSON.stringify(table.store.get().columnOrder, null, 2) }}
diff --git a/examples/vue/column-pinning-split/src/App.vue b/examples/vue/column-pinning-split/src/App.vue index badf4048ae..706ff561af 100644 --- a/examples/vue/column-pinning-split/src/App.vue +++ b/examples/vue/column-pinning-split/src/App.vue @@ -184,7 +184,7 @@ function handlePageSizeChange(e: any) {
Page
- {{ (table.state.pagination.pageIndex + 1).toLocaleString() }} of + {{ (table.store.get().pagination.pageIndex + 1).toLocaleString() }} of {{ table.getPageCount().toLocaleString() }}
@@ -198,7 +198,7 @@ function handlePageSizeChange(e: any) { />