Skip to main content
1 vote
1 answer
56 views

I'm trying to implement a redirect based on a property passed to a component nested deep within my route hierarchy. Right now I know 2 options how to do it. const MyComponent = ({ variable }: { ...
Jan Krakora's user avatar
  • 2,630
Tooling
0 votes
3 replies
57 views

I want to use react-router-rom and can we still use react-router-dom V5 in today's date? since it support custom route components, while react-router-dom V6+ has strict rules to use Route & Routes....
Shreyas H's user avatar
  • 127
0 votes
0 answers
19 views

I have a app where I am using JWT authentication. When I enter the details and click on the register button, the backend API correctly returns the token but in my console the token stays only for some ...
Ashley Ferns's user avatar
2 votes
1 answer
83 views

I need to define user pages (Home, Cows, Reports, …) once and make them accessible to AppUser + Admin under "/" with UserLayout, and also accessible to Admin under "/admin/user/*" ...
Ahmed Alawneh's user avatar
3 votes
1 answer
80 views

I'm using react-persist in my application. When I click to add a product to my basket and then want to navigate to my basket page, how do I pass the basket data to the fetch function in the loader ...
redoc01's user avatar
  • 2,529
1 vote
1 answer
246 views

I'm trying to incorporate React Router into my Firefox browser extension to be able to display different pages in the extension's popup window. However, I keep getting the warning, You should call ...
Fluffy the Togekiss's user avatar
3 votes
1 answer
96 views

I'm having issues configuring react-router-dom with nested routes loaded by sub-modules. In my application I need to dynamically load modules that have their own nested routes. One of the requirement ...
cef62's user avatar
  • 43
0 votes
0 answers
70 views

The reactJS client has left pane for menu and right for content. The react-route-dom 7.6.3 is used to create route in App.js as below: const router = createBrowserRouter([ { path: "/...
user938363's user avatar
  • 10.3k
4 votes
1 answer
279 views

I currently have a React Router v7 application running in SPA mode. I wanted to make an API route that uses a clientAction to submit data to an endpoint. If I use the useSubmit hook, I can ...
Sammi's user avatar
  • 51
-3 votes
1 answer
226 views

I'm trying to migrate an existing React/Vite app (currently using React Router v7, along with redux, rtk-query, and redux-persist) to use React Router v7 in Framework mode. I'm hitting an error when ...
drosboro's user avatar
  • 451
0 votes
1 answer
123 views

I have problem with my React app, using Vite and React-Router v7, in framework mode, ssr: false. When using dev mode, all styles are being applied correctly (I'm using moduled SCSS, and one global app....
dsadad's user avatar
  • 23
2 votes
0 answers
133 views

I'm using React Router v7 with BrowserRouter and need to navigate back multiple steps in browser history, then replace the resulting route atomically. My current approach causes a race condition where ...
Tekodaf's user avatar
  • 37
1 vote
1 answer
585 views

I just want to redirect one path to another. If I have something like this in my routes.ts: export default [ index("Home.tsx"), route("/about", "About.tsx"), ] ...
Matthew Wilcoxson's user avatar
2 votes
3 answers
226 views

In react-router, there is a hook to retrieve path parameters, for example "/users/:id" where the code can access the id value. In this example :id is a slug for a path parameter, and within ...
Apoqlite's user avatar
  • 309
2 votes
1 answer
80 views

Routes.ts import { type RouteConfig, index, route, layout } from "@react-router/dev/routes"; export default [ layout("layouts/main_layout.tsx", [ route("...
malle2002's user avatar

15 30 50 per page
1
2 3 4 5
1372