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
Change tab and route from within different component
How to nested a 404 and 500 page?
__root.tsx
layout and a _protected.tsx
layout.
My goal is to have a specific 404 page rendered when a route under the _protected
layout is not found, without falling back to the 404 defined in __root.tsx
.
Currently, I've tried defining a notFoundComponent
within _protected.tsx
. However, when I navigate to a non-existent route within the _protected
layout, it always renders the notFoundComponent defined in __root.tsx
instead....Router invalidate and context
.invalidate
to keep it fresh.
Our auth is ran by Clerk so we want to grab the user and auth state whenever the session tokens have been changed.
This setup works but its causing a very annoying "jump to top of page" whenever the context is refreshed. I may have missed something in the docs somewhere so im asking here, has anyone done anything similar or would happen to think of a better approach?
...How To Route Masking Properly With File Based Routing
Tanstack auth context not working?
Calling API and updating search params before loading a route
Can I put all my redirects in a single file?
Why Route.useSearch returns any here?
Multiple nested pathless layouts at the same level
_service-1.tsx
, _service-2.tsx
...how to pass a process.env value from SSR context to client?
process.env.SERVER_API
) and I want to make it available in my client. one way I thought to do this was context
so my file route components could access it as:
const {apiBase} = Route.useRouteContext();
const {apiBase} = Route.useRouteContext();
How to detect page navigation and i.e. close mobile menu?
Can I redirect from the index route?
How to mock getRouteApi ?
getRouteApi
to grab the teamId from the url. This component works very well when I render it in /teams/:teamId
.
```tsx...No shouldThrow option for useRouteContext
shouldThrow
as false
to that useMatch.
Could that be added as a possible property for useRouteContext?...Can I have layout over my whole app except one route?
src/routes/index.tsx
but I have an auth route for login and signining up
```
src/
|--routes/
| |--index.tsx (main layout)...Are ViewTransitions implemented in Link components?
fetching data in beforeLoad and injecting it in context
matchRoute matches pending location
$organizationId/$projectId
if you're not on any subpath of it
- My link navigates to $organizationId
...
is it possible to wildcat in Route Masking?
Layout Pathless Route seems to not work
