Skip to content

Commit e58634e

Browse files
committed
examples: replace relative paths with path aliases to improve consistency and conciseness.
1 parent 98dc050 commit e58634e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/react/start-basic-cloudflare/src/routes/posts.$postId.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Link, createFileRoute } from '@tanstack/react-router'
2-
import { fetchPost } from '../utils/posts'
2+
import { fetchPost } from '~/utils/posts'
33
import { NotFound } from '~/components/NotFound'
44
import { PostErrorComponent } from '~/components/PostError'
55

examples/react/start-basic-cloudflare/src/routes/posts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Link, Outlet, createFileRoute } from '@tanstack/react-router'
2-
import { fetchPosts } from '../utils/posts'
2+
import { fetchPosts } from '~/utils/posts'
33

44
export const Route = createFileRoute('/posts')({
55
loader: async () => fetchPosts(),

examples/react/start-basic-cloudflare/src/routes/posts_.$postId.deep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Link, createFileRoute } from '@tanstack/react-router'
2-
import { fetchPost } from '../utils/posts'
2+
import { fetchPost } from '~/utils/posts'
33
import { PostErrorComponent } from '~/components/PostError'
44

55
export const Route = createFileRoute('/posts_/$postId/deep')({

examples/react/start-basic-cloudflare/src/routes/users.$userId.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createFileRoute } from '@tanstack/react-router'
22
import { NotFound } from 'src/components/NotFound'
33
import { UserErrorComponent } from 'src/components/UserError'
4-
import type { User } from '../utils/users'
4+
import type { User } from '~/utils/users'
55

66
export const Route = createFileRoute('/users/$userId')({
77
loader: async ({ params: { userId } }) => {

examples/react/start-basic-cloudflare/src/routes/users.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Link, Outlet, createFileRoute } from '@tanstack/react-router'
2-
import type { User } from '../utils/users'
2+
import type { User } from '~/utils/users'
33

44
export const Route = createFileRoute('/users')({
55
loader: async () => {

0 commit comments

Comments
 (0)