Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
480 changes: 480 additions & 0 deletions e2e/react-start/basic/src/raw-stream-fns.ts

Large diffs are not rendered by default.

176 changes: 176 additions & 0 deletions e2e/react-start/basic/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { Route as UsersRouteImport } from './routes/users'
import { Route as TypeOnlyReexportRouteImport } from './routes/type-only-reexport'
import { Route as StreamRouteImport } from './routes/stream'
import { Route as ScriptsRouteImport } from './routes/scripts'
import { Route as RawStreamRouteImport } from './routes/raw-stream'
import { Route as PostsRouteImport } from './routes/posts'
import { Route as LinksRouteImport } from './routes/links'
import { Route as InlineScriptsRouteImport } from './routes/inline-scripts'
Expand All @@ -26,13 +27,20 @@ import { Route as IndexRouteImport } from './routes/index'
import { Route as UsersIndexRouteImport } from './routes/users.index'
import { Route as SearchParamsIndexRouteImport } from './routes/search-params/index'
import { Route as RedirectIndexRouteImport } from './routes/redirect/index'
import { Route as RawStreamIndexRouteImport } from './routes/raw-stream/index'
import { Route as PostsIndexRouteImport } from './routes/posts.index'
import { Route as NotFoundIndexRouteImport } from './routes/not-found/index'
import { Route as MultiCookieRedirectIndexRouteImport } from './routes/multi-cookie-redirect/index'
import { Route as UsersUserIdRouteImport } from './routes/users.$userId'
import { Route as SearchParamsLoaderThrowsRedirectRouteImport } from './routes/search-params/loader-throws-redirect'
import { Route as SearchParamsDefaultRouteImport } from './routes/search-params/default'
import { Route as RedirectTargetRouteImport } from './routes/redirect/$target'
import { Route as RawStreamSsrTextHintRouteImport } from './routes/raw-stream/ssr-text-hint'
import { Route as RawStreamSsrSingleRouteImport } from './routes/raw-stream/ssr-single'
import { Route as RawStreamSsrMultipleRouteImport } from './routes/raw-stream/ssr-multiple'
import { Route as RawStreamSsrMixedRouteImport } from './routes/raw-stream/ssr-mixed'
import { Route as RawStreamSsrBinaryHintRouteImport } from './routes/raw-stream/ssr-binary-hint'
import { Route as RawStreamClientCallRouteImport } from './routes/raw-stream/client-call'
import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
import { Route as NotFoundViaLoaderRouteImport } from './routes/not-found/via-loader'
import { Route as NotFoundViaBeforeLoadRouteImport } from './routes/not-found/via-beforeLoad'
Expand Down Expand Up @@ -79,6 +87,11 @@ const ScriptsRoute = ScriptsRouteImport.update({
path: '/scripts',
getParentRoute: () => rootRouteImport,
} as any)
const RawStreamRoute = RawStreamRouteImport.update({
id: '/raw-stream',
path: '/raw-stream',
getParentRoute: () => rootRouteImport,
} as any)
const PostsRoute = PostsRouteImport.update({
id: '/posts',
path: '/posts',
Expand Down Expand Up @@ -138,6 +151,11 @@ const RedirectIndexRoute = RedirectIndexRouteImport.update({
path: '/redirect/',
getParentRoute: () => rootRouteImport,
} as any)
const RawStreamIndexRoute = RawStreamIndexRouteImport.update({
id: '/',
path: '/',
getParentRoute: () => RawStreamRoute,
} as any)
const PostsIndexRoute = PostsIndexRouteImport.update({
id: '/',
path: '/',
Expand Down Expand Up @@ -175,6 +193,36 @@ const RedirectTargetRoute = RedirectTargetRouteImport.update({
path: '/redirect/$target',
getParentRoute: () => rootRouteImport,
} as any)
const RawStreamSsrTextHintRoute = RawStreamSsrTextHintRouteImport.update({
id: '/ssr-text-hint',
path: '/ssr-text-hint',
getParentRoute: () => RawStreamRoute,
} as any)
const RawStreamSsrSingleRoute = RawStreamSsrSingleRouteImport.update({
id: '/ssr-single',
path: '/ssr-single',
getParentRoute: () => RawStreamRoute,
} as any)
const RawStreamSsrMultipleRoute = RawStreamSsrMultipleRouteImport.update({
id: '/ssr-multiple',
path: '/ssr-multiple',
getParentRoute: () => RawStreamRoute,
} as any)
const RawStreamSsrMixedRoute = RawStreamSsrMixedRouteImport.update({
id: '/ssr-mixed',
path: '/ssr-mixed',
getParentRoute: () => RawStreamRoute,
} as any)
const RawStreamSsrBinaryHintRoute = RawStreamSsrBinaryHintRouteImport.update({
id: '/ssr-binary-hint',
path: '/ssr-binary-hint',
getParentRoute: () => RawStreamRoute,
} as any)
const RawStreamClientCallRoute = RawStreamClientCallRouteImport.update({
id: '/client-call',
path: '/client-call',
getParentRoute: () => RawStreamRoute,
} as any)
const PostsPostIdRoute = PostsPostIdRouteImport.update({
id: '/$postId',
path: '/$postId',
Expand Down Expand Up @@ -285,6 +333,7 @@ export interface FileRoutesByFullPath {
'/inline-scripts': typeof InlineScriptsRoute
'/links': typeof LinksRoute
'/posts': typeof PostsRouteWithChildren
'/raw-stream': typeof RawStreamRouteWithChildren
'/scripts': typeof ScriptsRoute
'/stream': typeof StreamRoute
'/type-only-reexport': typeof TypeOnlyReexportRoute
Expand All @@ -295,13 +344,20 @@ export interface FileRoutesByFullPath {
'/not-found/via-beforeLoad': typeof NotFoundViaBeforeLoadRoute
'/not-found/via-loader': typeof NotFoundViaLoaderRoute
'/posts/$postId': typeof PostsPostIdRoute
'/raw-stream/client-call': typeof RawStreamClientCallRoute
'/raw-stream/ssr-binary-hint': typeof RawStreamSsrBinaryHintRoute
'/raw-stream/ssr-mixed': typeof RawStreamSsrMixedRoute
'/raw-stream/ssr-multiple': typeof RawStreamSsrMultipleRoute
'/raw-stream/ssr-single': typeof RawStreamSsrSingleRoute
'/raw-stream/ssr-text-hint': typeof RawStreamSsrTextHintRoute
'/redirect/$target': typeof RedirectTargetRouteWithChildren
'/search-params/default': typeof SearchParamsDefaultRoute
'/search-params/loader-throws-redirect': typeof SearchParamsLoaderThrowsRedirectRoute
'/users/$userId': typeof UsersUserIdRoute
'/multi-cookie-redirect': typeof MultiCookieRedirectIndexRoute
'/not-found/': typeof NotFoundIndexRoute
'/posts/': typeof PostsIndexRoute
'/raw-stream/': typeof RawStreamIndexRoute
'/redirect': typeof RedirectIndexRoute
'/search-params/': typeof SearchParamsIndexRoute
'/users/': typeof UsersIndexRoute
Expand Down Expand Up @@ -334,12 +390,19 @@ export interface FileRoutesByTo {
'/not-found/via-beforeLoad': typeof NotFoundViaBeforeLoadRoute
'/not-found/via-loader': typeof NotFoundViaLoaderRoute
'/posts/$postId': typeof PostsPostIdRoute
'/raw-stream/client-call': typeof RawStreamClientCallRoute
'/raw-stream/ssr-binary-hint': typeof RawStreamSsrBinaryHintRoute
'/raw-stream/ssr-mixed': typeof RawStreamSsrMixedRoute
'/raw-stream/ssr-multiple': typeof RawStreamSsrMultipleRoute
'/raw-stream/ssr-single': typeof RawStreamSsrSingleRoute
'/raw-stream/ssr-text-hint': typeof RawStreamSsrTextHintRoute
'/search-params/default': typeof SearchParamsDefaultRoute
'/search-params/loader-throws-redirect': typeof SearchParamsLoaderThrowsRedirectRoute
'/users/$userId': typeof UsersUserIdRoute
'/multi-cookie-redirect': typeof MultiCookieRedirectIndexRoute
'/not-found': typeof NotFoundIndexRoute
'/posts': typeof PostsIndexRoute
'/raw-stream': typeof RawStreamIndexRoute
'/redirect': typeof RedirectIndexRoute
'/search-params': typeof SearchParamsIndexRoute
'/users': typeof UsersIndexRoute
Expand Down Expand Up @@ -367,6 +430,7 @@ export interface FileRoutesById {
'/inline-scripts': typeof InlineScriptsRoute
'/links': typeof LinksRoute
'/posts': typeof PostsRouteWithChildren
'/raw-stream': typeof RawStreamRouteWithChildren
'/scripts': typeof ScriptsRoute
'/stream': typeof StreamRoute
'/type-only-reexport': typeof TypeOnlyReexportRoute
Expand All @@ -378,13 +442,20 @@ export interface FileRoutesById {
'/not-found/via-beforeLoad': typeof NotFoundViaBeforeLoadRoute
'/not-found/via-loader': typeof NotFoundViaLoaderRoute
'/posts/$postId': typeof PostsPostIdRoute
'/raw-stream/client-call': typeof RawStreamClientCallRoute
'/raw-stream/ssr-binary-hint': typeof RawStreamSsrBinaryHintRoute
'/raw-stream/ssr-mixed': typeof RawStreamSsrMixedRoute
'/raw-stream/ssr-multiple': typeof RawStreamSsrMultipleRoute
'/raw-stream/ssr-single': typeof RawStreamSsrSingleRoute
'/raw-stream/ssr-text-hint': typeof RawStreamSsrTextHintRoute
'/redirect/$target': typeof RedirectTargetRouteWithChildren
'/search-params/default': typeof SearchParamsDefaultRoute
'/search-params/loader-throws-redirect': typeof SearchParamsLoaderThrowsRedirectRoute
'/users/$userId': typeof UsersUserIdRoute
'/multi-cookie-redirect/': typeof MultiCookieRedirectIndexRoute
'/not-found/': typeof NotFoundIndexRoute
'/posts/': typeof PostsIndexRoute
'/raw-stream/': typeof RawStreamIndexRoute
'/redirect/': typeof RedirectIndexRoute
'/search-params/': typeof SearchParamsIndexRoute
'/users/': typeof UsersIndexRoute
Expand Down Expand Up @@ -413,6 +484,7 @@ export interface FileRouteTypes {
| '/inline-scripts'
| '/links'
| '/posts'
| '/raw-stream'
| '/scripts'
| '/stream'
| '/type-only-reexport'
Expand All @@ -423,13 +495,20 @@ export interface FileRouteTypes {
| '/not-found/via-beforeLoad'
| '/not-found/via-loader'
| '/posts/$postId'
| '/raw-stream/client-call'
| '/raw-stream/ssr-binary-hint'
| '/raw-stream/ssr-mixed'
| '/raw-stream/ssr-multiple'
| '/raw-stream/ssr-single'
| '/raw-stream/ssr-text-hint'
| '/redirect/$target'
| '/search-params/default'
| '/search-params/loader-throws-redirect'
| '/users/$userId'
| '/multi-cookie-redirect'
| '/not-found/'
| '/posts/'
| '/raw-stream/'
| '/redirect'
| '/search-params/'
| '/users/'
Expand Down Expand Up @@ -462,12 +541,19 @@ export interface FileRouteTypes {
| '/not-found/via-beforeLoad'
| '/not-found/via-loader'
| '/posts/$postId'
| '/raw-stream/client-call'
| '/raw-stream/ssr-binary-hint'
| '/raw-stream/ssr-mixed'
| '/raw-stream/ssr-multiple'
| '/raw-stream/ssr-single'
| '/raw-stream/ssr-text-hint'
| '/search-params/default'
| '/search-params/loader-throws-redirect'
| '/users/$userId'
| '/multi-cookie-redirect'
| '/not-found'
| '/posts'
| '/raw-stream'
| '/redirect'
| '/search-params'
| '/users'
Expand All @@ -494,6 +580,7 @@ export interface FileRouteTypes {
| '/inline-scripts'
| '/links'
| '/posts'
| '/raw-stream'
| '/scripts'
| '/stream'
| '/type-only-reexport'
Expand All @@ -505,13 +592,20 @@ export interface FileRouteTypes {
| '/not-found/via-beforeLoad'
| '/not-found/via-loader'
| '/posts/$postId'
| '/raw-stream/client-call'
| '/raw-stream/ssr-binary-hint'
| '/raw-stream/ssr-mixed'
| '/raw-stream/ssr-multiple'
| '/raw-stream/ssr-single'
| '/raw-stream/ssr-text-hint'
| '/redirect/$target'
| '/search-params/default'
| '/search-params/loader-throws-redirect'
| '/users/$userId'
| '/multi-cookie-redirect/'
| '/not-found/'
| '/posts/'
| '/raw-stream/'
| '/redirect/'
| '/search-params/'
| '/users/'
Expand Down Expand Up @@ -540,6 +634,7 @@ export interface RootRouteChildren {
InlineScriptsRoute: typeof InlineScriptsRoute
LinksRoute: typeof LinksRoute
PostsRoute: typeof PostsRouteWithChildren
RawStreamRoute: typeof RawStreamRouteWithChildren
ScriptsRoute: typeof ScriptsRoute
StreamRoute: typeof StreamRoute
TypeOnlyReexportRoute: typeof TypeOnlyReexportRoute
Expand Down Expand Up @@ -591,6 +686,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof ScriptsRouteImport
parentRoute: typeof rootRouteImport
}
'/raw-stream': {
id: '/raw-stream'
path: '/raw-stream'
fullPath: '/raw-stream'
preLoaderRoute: typeof RawStreamRouteImport
parentRoute: typeof rootRouteImport
}
'/posts': {
id: '/posts'
path: '/posts'
Expand Down Expand Up @@ -675,6 +777,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof RedirectIndexRouteImport
parentRoute: typeof rootRouteImport
}
'/raw-stream/': {
id: '/raw-stream/'
path: '/'
fullPath: '/raw-stream/'
preLoaderRoute: typeof RawStreamIndexRouteImport
parentRoute: typeof RawStreamRoute
}
'/posts/': {
id: '/posts/'
path: '/'
Expand Down Expand Up @@ -724,6 +833,48 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof RedirectTargetRouteImport
parentRoute: typeof rootRouteImport
}
'/raw-stream/ssr-text-hint': {
id: '/raw-stream/ssr-text-hint'
path: '/ssr-text-hint'
fullPath: '/raw-stream/ssr-text-hint'
preLoaderRoute: typeof RawStreamSsrTextHintRouteImport
parentRoute: typeof RawStreamRoute
}
'/raw-stream/ssr-single': {
id: '/raw-stream/ssr-single'
path: '/ssr-single'
fullPath: '/raw-stream/ssr-single'
preLoaderRoute: typeof RawStreamSsrSingleRouteImport
parentRoute: typeof RawStreamRoute
}
'/raw-stream/ssr-multiple': {
id: '/raw-stream/ssr-multiple'
path: '/ssr-multiple'
fullPath: '/raw-stream/ssr-multiple'
preLoaderRoute: typeof RawStreamSsrMultipleRouteImport
parentRoute: typeof RawStreamRoute
}
'/raw-stream/ssr-mixed': {
id: '/raw-stream/ssr-mixed'
path: '/ssr-mixed'
fullPath: '/raw-stream/ssr-mixed'
preLoaderRoute: typeof RawStreamSsrMixedRouteImport
parentRoute: typeof RawStreamRoute
}
'/raw-stream/ssr-binary-hint': {
id: '/raw-stream/ssr-binary-hint'
path: '/ssr-binary-hint'
fullPath: '/raw-stream/ssr-binary-hint'
preLoaderRoute: typeof RawStreamSsrBinaryHintRouteImport
parentRoute: typeof RawStreamRoute
}
'/raw-stream/client-call': {
id: '/raw-stream/client-call'
path: '/client-call'
fullPath: '/raw-stream/client-call'
preLoaderRoute: typeof RawStreamClientCallRouteImport
parentRoute: typeof RawStreamRoute
}
'/posts/$postId': {
id: '/posts/$postId'
path: '/$postId'
Expand Down Expand Up @@ -928,6 +1079,30 @@ const PostsRouteChildren: PostsRouteChildren = {

const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)

interface RawStreamRouteChildren {
RawStreamClientCallRoute: typeof RawStreamClientCallRoute
RawStreamSsrBinaryHintRoute: typeof RawStreamSsrBinaryHintRoute
RawStreamSsrMixedRoute: typeof RawStreamSsrMixedRoute
RawStreamSsrMultipleRoute: typeof RawStreamSsrMultipleRoute
RawStreamSsrSingleRoute: typeof RawStreamSsrSingleRoute
RawStreamSsrTextHintRoute: typeof RawStreamSsrTextHintRoute
RawStreamIndexRoute: typeof RawStreamIndexRoute
}

const RawStreamRouteChildren: RawStreamRouteChildren = {
RawStreamClientCallRoute: RawStreamClientCallRoute,
RawStreamSsrBinaryHintRoute: RawStreamSsrBinaryHintRoute,
RawStreamSsrMixedRoute: RawStreamSsrMixedRoute,
RawStreamSsrMultipleRoute: RawStreamSsrMultipleRoute,
RawStreamSsrSingleRoute: RawStreamSsrSingleRoute,
RawStreamSsrTextHintRoute: RawStreamSsrTextHintRoute,
RawStreamIndexRoute: RawStreamIndexRoute,
}

const RawStreamRouteWithChildren = RawStreamRoute._addFileChildren(
RawStreamRouteChildren,
)

interface UsersRouteChildren {
UsersUserIdRoute: typeof UsersUserIdRoute
UsersIndexRoute: typeof UsersIndexRoute
Expand Down Expand Up @@ -1000,6 +1175,7 @@ const rootRouteChildren: RootRouteChildren = {
InlineScriptsRoute: InlineScriptsRoute,
LinksRoute: LinksRoute,
PostsRoute: PostsRouteWithChildren,
RawStreamRoute: RawStreamRouteWithChildren,
ScriptsRoute: ScriptsRoute,
StreamRoute: StreamRoute,
TypeOnlyReexportRoute: TypeOnlyReexportRoute,
Expand Down
8 changes: 8 additions & 0 deletions e2e/react-start/basic/src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@ function RootDocument({ children }: { children: React.ReactNode }) {
>
Client Only
</Link>{' '}
<Link
to="/raw-stream"
activeProps={{
className: 'font-bold',
}}
>
Raw Stream
</Link>{' '}
<Link
// @ts-expect-error
to="/this-route-does-not-exist"
Expand Down
Loading
Loading