this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

I think everything is fixed

+72 -10
+1
package.json
··· 46 46 "dotenv": "^17.4.0", 47 47 "drizzle-kit": "^0.31.10", 48 48 "jsdom": "^29.0.1", 49 + "oxlint-tsgolint": "^0.19.0", 49 50 "typescript": "^6.0.2", 50 51 "vite": "npm:@voidzero-dev/vite-plus-core@^0.1.15", 51 52 "vite-plus": "latest"
+64
pnpm-lock.yaml
··· 118 118 jsdom: 119 119 specifier: ^29.0.1 120 120 version: 29.0.1 121 + oxlint-tsgolint: 122 + specifier: ^0.19.0 123 + version: 0.19.0 121 124 typescript: 122 125 specifier: ^6.0.2 123 126 version: 6.0.2 ··· 967 970 cpu: [arm64] 968 971 os: [darwin] 969 972 973 + '@oxlint-tsgolint/darwin-arm64@0.19.0': 974 + resolution: {integrity: sha512-FVOIp5Njte8Z6PpINz7sL5blqSro0pAL8VAHYQ+K5Xm4cOrPQ6DGIhH14oXnbRjzn8Kl69qjz8TPteyn8EqwsQ==} 975 + cpu: [arm64] 976 + os: [darwin] 977 + 970 978 '@oxlint-tsgolint/darwin-x64@0.18.1': 971 979 resolution: {integrity: sha512-LE7VW/T/VcKhl3Z1ev5BusrxdlQ3DWweSeOB+qpBeur2h8+vCWq+M7tCO29C7lveBDfx1+rNwj4aiUVlA+Qs+g==} 972 980 cpu: [x64] 973 981 os: [darwin] 974 982 983 + '@oxlint-tsgolint/darwin-x64@0.19.0': 984 + resolution: {integrity: sha512-GakDTDACePvqOFq3N4oQCl8SyMMa7VBnqV0gDcXPuK50jdWCUqlxM9tgRJarjyIVvmDEJRGYOen+4uBtVwg4Aw==} 985 + cpu: [x64] 986 + os: [darwin] 987 + 975 988 '@oxlint-tsgolint/linux-arm64@0.18.1': 976 989 resolution: {integrity: sha512-2AG8YIXVJJbnM0rcsJmzzWOjZXBu5REwowgUpbHZueF7OYM3wR7Xu8pXEpAojEHAtYYZ3X4rpPoetomkJx7kCw==} 990 + cpu: [arm64] 991 + os: [linux] 992 + 993 + '@oxlint-tsgolint/linux-arm64@0.19.0': 994 + resolution: {integrity: sha512-Ya0R7somo+KDhhkPtENJ9Q28Fost+aqA3MPe86pEqgmukHFc/KO65PgShOSbIFjZNptELEQvsWL8gDxYZWhH3w==} 977 995 cpu: [arm64] 978 996 os: [linux] 979 997 ··· 982 1000 cpu: [x64] 983 1001 os: [linux] 984 1002 1003 + '@oxlint-tsgolint/linux-x64@0.19.0': 1004 + resolution: {integrity: sha512-yFH378jWc1k/oJmpk+TKpWbKvFieJJvsOHxVMSNFc+ukqs44ZSHVt4HFfAhXAt/bzVK2f7EIDTGp8Hm1OjoJ6Q==} 1005 + cpu: [x64] 1006 + os: [linux] 1007 + 985 1008 '@oxlint-tsgolint/win32-arm64@0.18.1': 986 1009 resolution: {integrity: sha512-fBdML05KMDAL9ebWeoHIzkyI86Eq6r9YH5UDRuXJ9vAIo1EnKo0ti7hLUxNdc2dy2FF/T4k98p5wkkXvLyXqfA==} 987 1010 cpu: [arm64] 988 1011 os: [win32] 989 1012 1013 + '@oxlint-tsgolint/win32-arm64@0.19.0': 1014 + resolution: {integrity: sha512-R6NyAtha7OWxh7NGBeFxqDTGAVl1Xj4xLa8Qj39PKbIDqBeVW8BIb+1nEnRp+Mo/VpRoeoFAcqlBsuMcUMd26Q==} 1015 + cpu: [arm64] 1016 + os: [win32] 1017 + 990 1018 '@oxlint-tsgolint/win32-x64@0.18.1': 991 1019 resolution: {integrity: sha512-cYZMhNrsq9ZZ3OUWHyawqiS+c8HfieYG0zuZP2LbEuWWPfdZM/22iAlo608J+27G1s9RXQhvgX6VekwWbXbD7A==} 992 1020 cpu: [x64] 993 1021 os: [win32] 994 1022 1023 + '@oxlint-tsgolint/win32-x64@0.19.0': 1024 + resolution: {integrity: sha512-2ePvxcbS5tPOmrQvxR8Kc+IqzdTtlrGeMDv+jjTYfkTFPmh2rF9yxVchi/4WM6js3gt2UauQeMV/tfnZNemENQ==} 1025 + cpu: [x64] 1026 + os: [win32] 1027 + 995 1028 '@oxlint/binding-android-arm-eabi@1.58.0': 996 1029 resolution: {integrity: sha512-1T7UN3SsWWxpWyWGn1cT3ASNJOo+pI3eUkmEl7HgtowapcV8kslYpFQcYn431VuxghXakPNlbjRwhqmR37PFOg==} 997 1030 engines: {node: ^20.19.0 || >=22.12.0} ··· 2240 2273 resolution: {integrity: sha512-Hgb0wMfuXBYL0ddY+1hAG8IIfC40ADwPnBuUaC6ENAuCtTF4dHwsy7mCYtQ2e7LoGvfoSJRY0+kqQRiembJ/jQ==} 2241 2274 hasBin: true 2242 2275 2276 + oxlint-tsgolint@0.19.0: 2277 + resolution: {integrity: sha512-pSzUmDjMyjC8iUUZ7fCLo0D1iUaYIfodd/WIQ6Zra11YkjkUQk3BOFoW4I5ec6uZ/0s2FEmxtiZ7hiTXFRp1cg==} 2278 + hasBin: true 2279 + 2243 2280 oxlint@1.58.0: 2244 2281 resolution: {integrity: sha512-t4s9leczDMqlvOSjnbCQe7gtoLkWgBGZ7sBdCJ9EOj5IXFSG/X7OAzK4yuH4iW+4cAYe8kLFbC8tuYMwWZm+Cg==} 2245 2282 engines: {node: ^20.19.0 || >=22.12.0} ··· 3188 3225 '@oxlint-tsgolint/darwin-arm64@0.18.1': 3189 3226 optional: true 3190 3227 3228 + '@oxlint-tsgolint/darwin-arm64@0.19.0': 3229 + optional: true 3230 + 3191 3231 '@oxlint-tsgolint/darwin-x64@0.18.1': 3232 + optional: true 3233 + 3234 + '@oxlint-tsgolint/darwin-x64@0.19.0': 3192 3235 optional: true 3193 3236 3194 3237 '@oxlint-tsgolint/linux-arm64@0.18.1': 3195 3238 optional: true 3196 3239 3240 + '@oxlint-tsgolint/linux-arm64@0.19.0': 3241 + optional: true 3242 + 3197 3243 '@oxlint-tsgolint/linux-x64@0.18.1': 3198 3244 optional: true 3199 3245 3246 + '@oxlint-tsgolint/linux-x64@0.19.0': 3247 + optional: true 3248 + 3200 3249 '@oxlint-tsgolint/win32-arm64@0.18.1': 3250 + optional: true 3251 + 3252 + '@oxlint-tsgolint/win32-arm64@0.19.0': 3201 3253 optional: true 3202 3254 3203 3255 '@oxlint-tsgolint/win32-x64@0.18.1': 3256 + optional: true 3257 + 3258 + '@oxlint-tsgolint/win32-x64@0.19.0': 3204 3259 optional: true 3205 3260 3206 3261 '@oxlint/binding-android-arm-eabi@1.58.0': ··· 4292 4347 '@oxlint-tsgolint/linux-x64': 0.18.1 4293 4348 '@oxlint-tsgolint/win32-arm64': 0.18.1 4294 4349 '@oxlint-tsgolint/win32-x64': 0.18.1 4350 + 4351 + oxlint-tsgolint@0.19.0: 4352 + optionalDependencies: 4353 + '@oxlint-tsgolint/darwin-arm64': 0.19.0 4354 + '@oxlint-tsgolint/darwin-x64': 0.19.0 4355 + '@oxlint-tsgolint/linux-arm64': 0.19.0 4356 + '@oxlint-tsgolint/linux-x64': 0.19.0 4357 + '@oxlint-tsgolint/win32-arm64': 0.19.0 4358 + '@oxlint-tsgolint/win32-x64': 0.19.0 4295 4359 4296 4360 oxlint@1.58.0(oxlint-tsgolint@0.18.1): 4297 4361 optionalDependencies:
+2 -2
src/router.tsx
··· 6 6 // Import the generated route tree 7 7 import { routeTree } from "./routeTree.gen.ts"; 8 8 9 - export function createRouter() { 9 + export function getRouter() { 10 10 const queryClient = new QueryClient(); 11 11 12 12 const router = routerWithQueryClient( ··· 33 33 // Register the router instance for type safety 34 34 declare module "@tanstack/react-router" { 35 35 interface Register { 36 - router: ReturnType<typeof createRouter>; 36 + router: ReturnType<typeof getRouter>; 37 37 } 38 38 }
+1 -1
src/routes/basic.tsx
··· 1 1 import { createFileRoute } from "@tanstack/react-router"; 2 2 import { useSuspenseQuery } from "@tanstack/react-query"; 3 - import { useServerFn } from "@tanstack/react-start"; 4 3 import * as v from "valibot"; 5 4 import { PaginationNav } from "~/components/pagination-nav"; 6 5 import { ··· 12 11 TableRow, 13 12 } from "~/components/ui/table"; 14 13 import { POKEMON_LIMIT, getPokemonListQueryKey, getServerPokemonListQueryFn } from "~/util/pokemon"; 14 + import { useServerFn } from "@tanstack/react-start"; 15 15 16 16 const searchParamsSchema = v.object({ 17 17 offset: v.optional(v.number(), 0),
+4 -7
src/routes/debounced-preload-filters.tsx
··· 1 1 import { createFileRoute } from "@tanstack/react-router"; 2 2 import { useDebouncedCallback } from "@tanstack/react-pacer"; 3 3 import { queryOptions, useQueryClient, useSuspenseQuery } from "@tanstack/react-query"; 4 - import { useServerFn } from "@tanstack/react-start"; 5 4 import { useCallback } from "react"; 6 5 import { useState } from "react"; 7 6 import * as v from "valibot"; ··· 63 62 const queryClient = useQueryClient(); 64 63 const { pokemonListOptions: serverPokemonListOptions } = Route.useRouteContext(); 65 64 const [nameFilter, setNameFilter] = useState(props.initialName); 66 - const getFilteredPokemonListQueryFn = useServerFn(getServerFilteredPokemonListQueryFn); 67 65 68 66 const debouncedNameFilter = useDebouncedCallback( 69 67 (newNameFilter: string) => { ··· 73 71 serverPokemonListOptions.queryKey[2].offset, 74 72 newNameFilter, 75 73 ), 76 - queryFn: getFilteredPokemonListQueryFn, 74 + queryFn: getServerFilteredPokemonListQueryFn, 77 75 }); 78 76 }, 79 77 { ··· 105 103 const navigate = Route.useNavigate(); 106 104 const { pokemonListOptions: serverPokemonListOptions } = Route.useRouteContext(); 107 105 const queryClient = useQueryClient(); 108 - const getFilteredPokemonListQueryFn = useServerFn(getServerFilteredPokemonListQueryFn); 109 106 110 107 const { data } = useSuspenseQuery({ 111 108 ...serverPokemonListOptions, 112 - queryFn: getFilteredPokemonListQueryFn, 109 + queryFn: getServerFilteredPokemonListQueryFn, 113 110 }); 114 111 115 112 if (data.prevOffset !== null) { 116 113 void queryClient.prefetchQuery({ 117 114 ...serverPokemonListOptions, 118 - queryFn: getFilteredPokemonListQueryFn, 115 + queryFn: getServerFilteredPokemonListQueryFn, 119 116 }); 120 117 } 121 118 122 119 if (data.nextOffset !== null) { 123 120 void queryClient.prefetchQuery({ 124 121 ...serverPokemonListOptions, 125 - queryFn: getFilteredPokemonListQueryFn, 122 + queryFn: getServerFilteredPokemonListQueryFn, 126 123 }); 127 124 } 128 125