From b79fa7ef0dab250b1a94dc6b77fed15760af4c35 Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Sat, 29 Jun 2024 11:07:16 +1000 Subject: [PATCH] docs: Fix new react example --- .../react/query-router-search-params/src/components/table.tsx | 4 ++-- packages/svelte-table/src/flex-render.svelte | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/react/query-router-search-params/src/components/table.tsx b/examples/react/query-router-search-params/src/components/table.tsx index 03205bdd9b..9a5e5c0cc2 100644 --- a/examples/react/query-router-search-params/src/components/table.tsx +++ b/examples/react/query-router-search-params/src/components/table.tsx @@ -6,7 +6,7 @@ import { PaginationOptions, PaginationState, SortingState, - useReactTable, + useTable, } from '@tanstack/react-table' import { Filters } from '../api/types' import { DebouncedInput } from './debouncedInput' @@ -35,7 +35,7 @@ export default function Table>({ sorting, onSortingChange, }: Props) { - const table = useReactTable({ + const table = useTable({ data, columns, state: { pagination, sorting }, diff --git a/packages/svelte-table/src/flex-render.svelte b/packages/svelte-table/src/flex-render.svelte index 2dc599b556..44a6244ba4 100644 --- a/packages/svelte-table/src/flex-render.svelte +++ b/packages/svelte-table/src/flex-render.svelte @@ -26,7 +26,7 @@ {#if typeof content === 'string'} {content} {:else if content instanceof Function} - {@const result = content(context as any)} + {@const result = content(context as any)} {#if result instanceof RenderComponentConfig} {:else}