From d24602ccd25ebb63213a91827bc7b69b28c18780 Mon Sep 17 00:00:00 2001 From: junwen-k <40173716+junwen-k@users.noreply.github.com> Date: Wed, 1 Jan 2025 14:55:43 +0800 Subject: [PATCH] doc(tanstack-table): fix tanstack table sorting parser code --- .../content/docs/parsers/community/tanstack-table.sorting.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/content/docs/parsers/community/tanstack-table.sorting.tsx b/packages/docs/content/docs/parsers/community/tanstack-table.sorting.tsx index ca2e0d12..c7e6d0e8 100644 --- a/packages/docs/content/docs/parsers/community/tanstack-table.sorting.tsx +++ b/packages/docs/content/docs/parsers/community/tanstack-table.sorting.tsx @@ -46,7 +46,7 @@ const sortParser = createParser({ const parseAsSortingState = parseAsArrayOf(sortParser).withDefault([]) -export function useSortingSearchParams(key = 'orderBy') { +export function useSortingSearchParams() { return useQueryState('${sortingUrlKey}', parseAsSortingState) }`)