Skip to content

Commit 18ade98

Browse files
ci: apply automated fixes
1 parent 7e71445 commit 18ade98

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

examples/solid/start-basic-solid-query/src/routes/posts.$postId.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { postQueryOptions } from '../utils/posts'
44
import type { ErrorComponentProps } from '@tanstack/solid-router'
55
import { NotFound } from '~/components/NotFound'
66

7-
87
export function PostErrorComponent({ error }: ErrorComponentProps) {
98
return <ErrorComponent error={error} />
109
}
@@ -29,11 +28,10 @@ export const Route = createFileRoute('/posts/$postId')({
2928
component: PostComponent,
3029
})
3130

32-
3331
function PostComponent() {
3432
const params = Route.useParams()
3533
const postQuery = useQuery(() => postQueryOptions(params().postId))
36-
34+
3735
return (
3836
<div class="space-y-2">
3937
<h4 class="text-xl font-bold underline">{postQuery.data?.title}</h4>

examples/solid/start-basic-solid-query/src/routes/posts.route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function PostsComponent() {
1919
<div class="p-2 flex gap-2">
2020
<ul class="list-disc pl-4">
2121
{[
22-
...postsQuery.data || [],
22+
...(postsQuery.data || []),
2323
{ id: 'i-do-not-exist', title: 'Non-existent Post' },
2424
].map((post) => {
2525
return (

examples/solid/start-basic-solid-query/src/routes/users.$userId.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export function UserErrorComponent({ error }: ErrorComponentProps) {
88
return <ErrorComponent error={error} />
99
}
1010

11-
1211
export const Route = createFileRoute('/users/$userId')({
1312
loader: async ({ context, params: { userId } }) => {
1413
await context.queryClient.ensureQueryData(userQueryOptions(userId))
@@ -20,7 +19,6 @@ export const Route = createFileRoute('/users/$userId')({
2019
},
2120
})
2221

23-
2422
function UserComponent() {
2523
const params = Route.useParams()
2624
const userQuery = useQuery(() => userQueryOptions(params().userId))

examples/solid/start-basic-solid-query/src/routes/users.route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function UsersComponent() {
1616
<div class="p-2 flex gap-2">
1717
<ul class="list-disc pl-4">
1818
{[
19-
...usersQuery.data || [],
19+
...(usersQuery.data || []),
2020
{ id: 'i-do-not-exist', name: 'Non-existent User', email: '' },
2121
].map((user) => {
2222
return (

0 commit comments

Comments
 (0)