Skip to content

Commit 0d69081

Browse files
authored
fix: preserve query parameters for telemetry route (#42)
1 parent 9061752 commit 0d69081

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/dev-playground/client/src/routes/telemetry.route.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
import { createFileRoute } from "@tanstack/react-router";
1+
import { createFileRoute, retainSearchParams } from "@tanstack/react-router";
22
import { Button } from "@/components/ui/button";
33
import { Card } from "@/components/ui/card";
44
import { useState } from "react";
55
import { Activity, Loader2 } from "lucide-react";
66

77
export const Route = createFileRoute("/telemetry")({
88
component: TelemetryRoute,
9+
search: {
10+
middlewares: [retainSearchParams(true)],
11+
},
912
});
1013

1114
type ExampleResult = {

0 commit comments

Comments
 (0)