mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-25 19:01:38 +01:00
Add .oxfmtignore to skip generated bindings and wasm-pack output. Add npm format script, update DEVELOPMENT.md for Vite+ toolchain, and format all non-generated files with oxfmt. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
808 B
TypeScript
24 lines
808 B
TypeScript
import { createFileRoute, Navigate, useParams } from "@tanstack/react-router";
|
|
|
|
// -----------------------------------------------------------------------------------
|
|
// IMPORTANT: This is a deprecated route. Since the active request is optional, it was
|
|
// moved from a path param to a query parameter. This route does a redirect to the
|
|
// parent, while preserving the active request.
|
|
|
|
export const Route = createFileRoute("/workspaces/$workspaceId/requests/$requestId")({
|
|
component: RouteComponent,
|
|
});
|
|
|
|
function RouteComponent() {
|
|
const { workspaceId, requestId } = useParams({
|
|
from: "/workspaces/$workspaceId/requests/$requestId",
|
|
});
|
|
return (
|
|
<Navigate
|
|
to="/workspaces/$workspaceId"
|
|
params={{ workspaceId }}
|
|
search={(prev) => ({ ...prev, requestId })}
|
|
/>
|
|
);
|
|
}
|