Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update nuqs to v2 #282

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"next-international": "1.2.4",
"next-safe-action": "^7.9.3",
"next-themes": "^0.3.0",
"nuqs": "^1.19.3",
"nuqs": "^2.0.2",
"papaparse": "^5.4.1",
"react": "18.3.1",
"react-colorful": "^5.6.1",
Expand Down
5 changes: 4 additions & 1 deletion apps/dashboard/src/app/[locale]/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ThemeProvider } from "@/components/theme-provider";
import { I18nProviderClient } from "@/locales/client";
import { isDesktopApp } from "@todesktop/client-core/platform/todesktop";
import { TriggerProvider } from "@trigger.dev/react";
import { NuqsAdapter } from 'nuqs/adapters/next/app';
franky47 marked this conversation as resolved.
Show resolved Hide resolved
import type { ReactNode } from "react";

// We need to import it here because this is the first
Expand All @@ -30,7 +31,9 @@ export function Providers({ locale, children }: ProviderProps) {
publicApiKey={process.env.NEXT_PUBLIC_TRIGGER_API_KEY!}
apiUrl={process.env.NEXT_PUBLIC_TRIGGER_API_URL}
>
{children}
<NuqsAdapter>
{children}
</NuqsAdapter>
</TriggerProvider>
</ThemeProvider>
</I18nProviderClient>
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/src/hooks/use-connect-params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function useConnectParams(initialCountryCode?: string) {
token: parseAsString,
enrollment_id: parseAsString,
institution_id: parseAsString,
q: parseAsString.withDefault("").withOptions({ clearOnDefault: true }),
q: parseAsString.withDefault(""),
error: parseAsString,
ref: parseAsString,
details: parseAsString,
Expand Down
Binary file modified bun.lockb
Binary file not shown.