Skip to content

Commit b51d7de

Browse files
autofix-ci[bot]birkskyum
authored andcommitted
ci: apply automated fixes
1 parent 6b753d3 commit b51d7de

18 files changed

+30
-39
lines changed

examples/solid/kitchen-sink-solid-query-file-based/src/hooks/useSessionStorage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import * as Solid from 'solid-js'
22

33
export function useSessionStorage<T>(key: string, initialValue: T) {
4-
54
const stored = sessionStorage.getItem(key)
6-
const [state, setState] = Solid.createSignal<T>(stored ? JSON.parse(stored) : initialValue)
5+
const [state, setState] = Solid.createSignal<T>(
6+
stored ? JSON.parse(stored) : initialValue,
7+
)
78

89
Solid.createEffect(() => {
910
sessionStorage.setItem(key, JSON.stringify(state()))

examples/solid/kitchen-sink-solid-query-file-based/src/main.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {render} from 'solid-js/web'
1+
import { render } from 'solid-js/web'
22
import {
33
ErrorComponent,
44
RouterProvider,
@@ -26,7 +26,7 @@ const router = createRouter({
2626
context: {
2727
auth: undefined!, // We'll inject this when we render
2828
queryClient: queryClient, // Type assertion to fix the type mismatch
29-
},
29+
},
3030
defaultPreload: 'intent',
3131
// Since we're using Solid Query, we don't want loader calls to ever be stale
3232
// This will ensure that the loader is always called when the route is preloaded or visited
@@ -142,10 +142,12 @@ function App() {
142142

143143
const rootElement = document.getElementById('app')!
144144
if (!rootElement.innerHTML) {
145-
render(()=>
146-
<QueryClientProvider client={queryClient}>
147-
<App />
148-
</QueryClientProvider>,
149-
rootElement
145+
render(
146+
() => (
147+
<QueryClientProvider client={queryClient}>
148+
<App />
149+
</QueryClientProvider>
150+
),
151+
rootElement,
150152
)
151153
}

examples/solid/kitchen-sink-solid-query-file-based/src/routes/_auth.profile.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
export const Route = createFileRoute({
42
component: ProfileComponent,
53
})

examples/solid/kitchen-sink-solid-query-file-based/src/routes/_auth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { redirect } from '@tanstack/solid-router'
1+
import { redirect } from '@tanstack/solid-router'
22
import { auth } from '../utils/auth'
33

44
export const Route = createFileRoute({

examples/solid/kitchen-sink-solid-query-file-based/src/routes/_pathlessLayout.route-a.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
export const Route = createFileRoute({
42
component: LayoutAComponent,
53
})

examples/solid/kitchen-sink-solid-query-file-based/src/routes/_pathlessLayout.route-b.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
export const Route = createFileRoute({
42
component: LayoutBComponent,
53
})

examples/solid/kitchen-sink-solid-query-file-based/src/routes/dashboard.index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import { createQuery } from '@tanstack/solid-query'
32
import { invoicesQueryOptions } from '../utils/queryOptions'
43

@@ -9,7 +8,7 @@ export const Route = createFileRoute({
98
})
109

1110
function DashboardIndexComponent() {
12-
const invoicesQuery = createQuery(()=>invoicesQueryOptions())
11+
const invoicesQuery = createQuery(() => invoicesQueryOptions())
1312
const invoices = invoicesQuery.data
1413

1514
return (

examples/solid/kitchen-sink-solid-query-file-based/src/routes/dashboard.invoices.$invoiceId.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ function InvoiceComponent() {
3333
const search = Route.useSearch()
3434
const params = Route.useParams()
3535
const navigate = useNavigate({ from: Route.fullPath })
36-
const invoiceQuery = createQuery(()=>invoiceQueryOptions(params().invoiceId))
36+
const invoiceQuery = createQuery(() =>
37+
invoiceQueryOptions(params().invoiceId),
38+
)
3739
const invoice = invoiceQuery.data
3840
const updateInvoiceMutation = useUpdateInvoiceMutation(params().invoiceId)
3941
const [notes, setNotes] = Solid.createSignal(search().notes ?? '')

examples/solid/kitchen-sink-solid-query-file-based/src/routes/dashboard.invoices.index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import { InvoiceFields } from '../components/InvoiceFields'
32
import { Spinner } from '../components/Spinner'
43
import { useCreateInvoiceMutation } from '../utils/queryOptions'

examples/solid/kitchen-sink-solid-query-file-based/src/routes/dashboard.invoices.route.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { Link,
2-
MatchRoute,
3-
Outlet } from '@tanstack/solid-router'
1+
import { Link, MatchRoute, Outlet } from '@tanstack/solid-router'
42
import { createQuery } from '@tanstack/solid-query'
53
import { Spinner } from '../components/Spinner'
64
import { invoicesQueryOptions } from '../utils/queryOptions'
@@ -12,7 +10,7 @@ export const Route = createFileRoute({
1210
})
1311

1412
function InvoicesComponent() {
15-
const invoicesQuery = createQuery(()=>invoicesQueryOptions())
13+
const invoicesQuery = createQuery(() => invoicesQueryOptions())
1614
const invoices = invoicesQuery.data
1715

1816
return (

0 commit comments

Comments
 (0)