react-query-questions
solid-query-questions
table-questions
virtual-questions
router-questions
react-charts-questions
ranger-questions
vue-query-questions
svelte-query-questions
bling-questions
form-questions
angular-query-questions
start-questions
db-questions
start-showcase
router-showcase
📣-announcements
Wildcards
Minimal router tests type error
'__store.state' are incompatible between these types
.
How can I adjust my minimal router to fit the type, or adjust the type to fit my minimal router?
...
Having a Slug instead of id in the route url
http://localhost:3000/topic/real-estate
http://localhost:3000/topic/real-estate
SSR Examples don't build?
frontend@0.0.0 build:client vite build src/entry-client.tsx --outDir dist/client...
Params typed incorrectly
routes/admin/$activityType/index.tsx
, like so:
```
import { createFileRoute } from '@tanstack/react-router';
export const Route = createFileRoute('/admin/$activityType/')({...Implementing something similar to Processing Accumulated Route Context for just one app
Structuring navbar code, with an exception for the login page
__root.tsx
file, since I thought "oh the navbar is essentially a layout for the entire app". However, from what I understood from the documentation, the root component is always rendered, so I can't prevent it from being rendered in a specific route such as the login.
Which leads to my question: should I keep my navbar code in the root component with a condition to only render when not in the login page? Or should I keep my root component mostly empty and create a new layout for the entirety of my app, with the exception of the login page?...How to return the last page without search params?
TypeError with Link component
`Route.fullPath` not accessible from lazy file route?
Back preserving previous searchParams
/users
page that has pagination ie. /users?page=2
. I then have a details page at /user/<id>
eg /user/7
. I want to mirror the functionality of the browser and preserve that search param from the previous page with a custom "back" button on-page.
I've read the docs but can't find a clear way to do this — preferably using <Link>
if possible to keep it simple....Issue with Route.useParams() in a lazy file route
Link params type error
Object literal may only specify known properties, and 'id' does not exist in type '(current: {} | { category: string; } | {} | { id: string; } | { id: string; } | { category: string; id: string; }) => never'.ts(2353)
Object literal may only specify known properties, and 'id' does not exist in type '(current: {} | { category: string; } | {} | { id: string; } | { id: string; } | { category: string; id: string; }) => never'.ts(2353)
Isomorphic code in loader functions w/ SSR
Prevent same component from unmounting between routes
/search/
* /search/$query
* /search/$query/$section
...How to prevent usage of client only api's on the server? (tanstack router)
new RTCPeerConnection()
. This errors on the server (obviously). How do I best handle this case? I could try to return early, if process.browser
is not defined. But this will lead me to conditional hook calling....import { useLocation } from '@tanstack/react-router'
How to refetch queries when the data are comming from the loader
Navigation blocking but ignoring sibling route changes
<Block />
component to block navigation when navigating away from the parent route (to display a save warning modal). The problem is that this also blocks navigation between the child routes, which is not what I want. How do I do this? I can't find an obvious solution.
Basically, I want this behavior:
/parent/childA
to /parent/childB
= don't block
/parent/childA
to /some-other-route
= block...How do I stop search params from being automatically converted to number?