Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

_chat.draft.$draftId.tsx

7 lines304 Bytes

1import { createFileRoute } from "@tanstack/react-router";
2​
3// The view lives in the `_chat` layout (see ThreadRouteView) so a draft's
4// promotion to `/$environmentId/$threadId` keeps the same ChatView mounted.
5export const Route = createFileRoute("/_chat/draft/$draftId")({
6 component: () => null,
7});