this repo has no description
0
fork

Configure Feed

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

Yeah there's been router shenanigans I guess.

+51 -19
+1 -1
package.json
··· 26 26 "@tanstack/react-query-devtools": "^5.100.5", 27 27 "@tanstack/react-router": "^1.168.25", 28 28 "@tanstack/react-router-devtools": "^1.166.13", 29 - "@tanstack/react-router-with-query": "^1.130.17", 29 + "@tanstack/react-router-ssr-query": "^1.166.12", 30 30 "@tanstack/react-start": "^1.167.50", 31 31 "@tanstack/start-static-server-functions": "^1.166.36", 32 32 "@vitejs/plugin-rsc": "^0.5.25",
+36
pnpm-lock.yaml
··· 51 51 '@tanstack/react-router-devtools': 52 52 specifier: ^1.166.13 53 53 version: 1.166.13(@tanstack/react-router@1.168.25(react-dom@19.2.5(react@19.2.5))(react@19.2.5))(@tanstack/router-core@1.168.17)(csstype@3.2.3)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) 54 + '@tanstack/react-router-ssr-query': 55 + specifier: ^1.166.12 56 + version: 1.166.12(@tanstack/query-core@5.100.5)(@tanstack/react-query@5.100.5(react@19.2.5))(@tanstack/react-router@1.168.25(react-dom@19.2.5(react@19.2.5))(react@19.2.5))(@tanstack/router-core@1.168.17)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) 54 57 '@tanstack/react-router-with-query': 55 58 specifier: ^1.130.17 56 59 version: 1.130.17(@tanstack/react-query@5.100.5(react@19.2.5))(@tanstack/react-router@1.168.25(react-dom@19.2.5(react@19.2.5))(react@19.2.5))(@tanstack/router-core@1.168.17)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) ··· 2125 2128 '@tanstack/router-core': 2126 2129 optional: true 2127 2130 2131 + '@tanstack/react-router-ssr-query@1.166.12': 2132 + resolution: {integrity: sha512-yDUIoEh+PimAcWmk/2BE0EkI8TwLVeToNzoIuwahmTtBUR+ptZPWbtiPjudO8JZ0BhT3odHtuOn1eBOK0/4NAQ==} 2133 + engines: {node: '>=20.19'} 2134 + peerDependencies: 2135 + '@tanstack/query-core': '>=5.90.0' 2136 + '@tanstack/react-query': '>=5.90.0' 2137 + '@tanstack/react-router': '>=1.127.0' 2138 + react: '>=18.0.0 || >=19.0.0' 2139 + react-dom: '>=18.0.0 || >=19.0.0' 2140 + 2128 2141 '@tanstack/react-router-with-query@1.130.17': 2129 2142 resolution: {integrity: sha512-TNaSocW20KuPwUojEm130DLWTr9M5hsSzxiu4QqS2jNCnrGLuDrwMHyP+6fq13lG3YuU4u9O1qajxfJIGomZCg==} 2130 2143 engines: {node: '>=12'} ··· 2243 2256 optional: true 2244 2257 webpack: 2245 2258 optional: true 2259 + 2260 + '@tanstack/router-ssr-query-core@1.168.0': 2261 + resolution: {integrity: sha512-5yBUAF1d9z2kOFKoz1spvpvkMSTmRnRXEwi+bGKfrXYmt7CfHu3Pk8KUFMln67uQoKQ9VTkcd5tLkjJVrZ2/AQ==} 2262 + engines: {node: '>=20.19'} 2263 + peerDependencies: 2264 + '@tanstack/query-core': '>=5.90.0' 2265 + '@tanstack/router-core': '>=1.127.0' 2246 2266 2247 2267 '@tanstack/router-utils@1.161.7': 2248 2268 resolution: {integrity: sha512-VkY0u7ax/GD0qU6ZLLnfPC+UMxVzxRbvZp4yV4iUSXjgJZ/siAT5/QlLm9FEDJ9QDoC0VD9W7f00tKKreUI7Ng==} ··· 7232 7252 transitivePeerDependencies: 7233 7253 - csstype 7234 7254 7255 + '@tanstack/react-router-ssr-query@1.166.12(@tanstack/query-core@5.100.5)(@tanstack/react-query@5.100.5(react@19.2.5))(@tanstack/react-router@1.168.25(react-dom@19.2.5(react@19.2.5))(react@19.2.5))(@tanstack/router-core@1.168.17)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)': 7256 + dependencies: 7257 + '@tanstack/query-core': 5.100.5 7258 + '@tanstack/react-query': 5.100.5(react@19.2.5) 7259 + '@tanstack/react-router': 1.168.25(react-dom@19.2.5(react@19.2.5))(react@19.2.5) 7260 + '@tanstack/router-ssr-query-core': 1.168.0(@tanstack/query-core@5.100.5)(@tanstack/router-core@1.168.17) 7261 + react: 19.2.5 7262 + react-dom: 19.2.5(react@19.2.5) 7263 + transitivePeerDependencies: 7264 + - '@tanstack/router-core' 7265 + 7235 7266 '@tanstack/react-router-with-query@1.130.17(@tanstack/react-query@5.100.5(react@19.2.5))(@tanstack/react-router@1.168.25(react-dom@19.2.5(react@19.2.5))(react@19.2.5))(@tanstack/router-core@1.168.17)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)': 7236 7267 dependencies: 7237 7268 '@tanstack/react-query': 5.100.5(react@19.2.5) ··· 7379 7410 vite: '@voidzero-dev/vite-plus-core@0.1.19(@types/node@25.6.0)(esbuild@0.27.7)(jiti@2.6.1)(tsx@4.21.0)(typescript@6.0.3)(yaml@2.8.3)' 7380 7411 transitivePeerDependencies: 7381 7412 - supports-color 7413 + 7414 + '@tanstack/router-ssr-query-core@1.168.0(@tanstack/query-core@5.100.5)(@tanstack/router-core@1.168.17)': 7415 + dependencies: 7416 + '@tanstack/query-core': 5.100.5 7417 + '@tanstack/router-core': 1.168.17 7382 7418 7383 7419 '@tanstack/router-utils@1.161.7': 7384 7420 dependencies:
+14 -18
src/router.tsx
··· 1 1 import { createRouter as createTanstackRouter } from "@tanstack/react-router"; 2 2 3 3 import { QueryClient } from "@tanstack/react-query"; 4 - import { routerWithQueryClient } from "@tanstack/react-router-with-query"; 5 4 import { setupRouterSsrQueryIntegration } from "@tanstack/react-router-ssr-query"; 6 5 7 6 // Import the generated route tree ··· 57 56 export function getRouter() { 58 57 const queryClient = new QueryClient(); 59 58 60 - const router = routerWithQueryClient( 61 - createTanstackRouter({ 62 - routeTree, 63 - scrollRestoration: true, 64 - defaultPreload: false, 65 - defaultStructuralSharing: true, 66 - defaultPreloadStaleTime: 0, 67 - defaultPendingMs: 0, 68 - defaultErrorComponent: DefaultErrorComponent, 69 - defaultPendingComponent: DefaultPendingComponent, 70 - defaultNotFoundComponent: DefaultNotFoundComponent, 71 - context: { 72 - queryClient, 73 - }, 74 - }), 75 - queryClient, 76 - ); 59 + const router = createTanstackRouter({ 60 + routeTree, 61 + scrollRestoration: true, 62 + defaultPreload: false, 63 + defaultStructuralSharing: true, 64 + defaultPreloadStaleTime: 0, 65 + defaultPendingMs: 0, 66 + defaultErrorComponent: DefaultErrorComponent, 67 + defaultPendingComponent: DefaultPendingComponent, 68 + defaultNotFoundComponent: DefaultNotFoundComponent, 69 + context: { 70 + queryClient, 71 + }, 72 + }); 77 73 78 74 setupRouterSsrQueryIntegration({ 79 75 router,