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
Navigating to an external route in beforeLoad
Load virtual routes absolute path
Are links supported in createRoute(), and not just createRootRoute()?
navigate is not work when CatchBoundary is work
Authentication using React hooks does not re-trigger beforeLoad
useInternetIdentity
to login the user and want to set that up so that the user identity is available in the router context.
This works well.
But, changes to the login state does not trigger a new beforeLoad
on the route. When the login state changes because the user logs in or out, I can see the identity
in <InnerRoot>
update. But, this does not trigger a refresh of the route. ...protected routes
beforeLoad
in a __authenticated.tsx
file but what I don't understand is how to create a wrapper around my project to check the add that check. Could someone help out a big noob understand here? 🙂
Wops! This is what I have read. Please highlight what I have missed.
https://tanstack.com/router/latest/docs/framework/react/guide/authenticated-routes...How can I use zod discriminated union for search params?
What's the proper way to integrate with react-oidc-context?
react-oidc-context
for auth, I want to integrate the router with it, but I do not want to go into the app without auth being loaded
const auth = useAuth()
auth.isLoading // This is a boolean
const auth = useAuth()
auth.isLoading // This is a boolean
Add file type to API route
.png
file extension for the path. How can I create an API route like '/api/images/meta/$id.png'
?Route rewrite before route parsing?
foo.com/draft/#/login?#access_token=eyJhb
. As you can see, there is one # too much before access_token.
How can we rewrite the route before the router does the parsing to remove this second # ?...
Are there plans to have an RPC-like thing for api routes?
createServerSideFn({apiRoute: "users?id", method: "GET" })
or something like that...Get window width on server
window
on the server so I have to wait until the component renders on the client. But, I am getting a flash of incorrect style on the client before I measure the window and set the correct value. Is there a way to get window width (or at least browser type, etc) on the server. I started of with a useEffect
solution and have now moved to a useState
solution.
```js
const [sm, setSm] = useState(false);
...Use « useSearch » in the root page
How to check for auth with Clerk and Tanstack Start?
Edit and update loader data / Update useState after router.invalidate()
<input>
and the backend is supposed to simply append the string "foo". When the user hits save, a POST request saves the data and nothing but 200 OK is returned.
To update the view, i want to call router.invalidate()
to update using a GET request.
This works up until the useState
for the <input>
because useState
ignores when it's parameter changes value.
How do i solve this issue? Is there a best practise for being able to edit and update data from a loader?...Get the `from` location when user navigates
from
address. How could I do this. Thanks...How would multiple apps with Vite and router looks like?
Accessing Cloudflare Pages Environment Variables
Is using tanstack query inside the route's loader function deferred by default?
``ts
export const Route = createFileRoute('/posts')({
// Use the
loader` option to ensure that the data is loaded...