From 2f065e24d02fa3295b6fccdcc957ebd0d8e5b29a Mon Sep 17 00:00:00 2001
From: "codegen-sh[bot]" <131295404+codegen-sh[bot]@users.noreply.github.com>
Date: Wed, 16 Apr 2025 04:56:01 +0000
Subject: [PATCH 01/10] Replace nuqs with React Router 7 features in data table
component
---
.../src/lib/storybook/react-router-stub.tsx | 9 +-
.../data-table-router-form.stories.tsx | 16 ++--
packages/components/package.json | 75 +++++++--------
.../data-table-router-form.tsx | 94 ++++++++++++++-----
.../data-table-router-parsers.ts | 83 ++++++++++++++--
.../data-table-router-toolbar.tsx | 10 +-
6 files changed, 188 insertions(+), 99 deletions(-)
diff --git a/apps/docs/src/lib/storybook/react-router-stub.tsx b/apps/docs/src/lib/storybook/react-router-stub.tsx
index 86b0776c..0c40f214 100644
--- a/apps/docs/src/lib/storybook/react-router-stub.tsx
+++ b/apps/docs/src/lib/storybook/react-router-stub.tsx
@@ -1,5 +1,4 @@
import type { Decorator } from '@storybook/react';
-import { NuqsAdapter } from 'nuqs/adapters/react-router/v7';
import type { ComponentType } from 'react';
import {
type ActionFunction,
@@ -65,13 +64,7 @@ export const withReactRouterStubDecorator = (options: RemixStubOptions): Decorat
initialEntries: [actualInitialPath], // Use the path combined with window.location.search
});
- return (
- // NuqsAdapter will now read the initial state from the MemoryRouter,
- // which has been initialized using the window's query params.
-