reach-router Questions
5
I'm trying to get Reach Router to navigate programmatically from one of my components. The URL is updated as expected however the route is not rendered and if I look at the React developer tools I ...
Jelks asked 27/8, 2019 at 15:36
1
I'm working with React and I tried to use @reach/router, but when I try to install for the console, I had this error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ...
Weightless asked 14/5, 2021 at 17:37
5
I am working on gatsby. I need to go back to privious page/link as I used to do with reactjs.
<a onClick={() => this.props.history.goBack}>
<button type="button" className="close_tab"...
Starknaked asked 2/5, 2019 at 13:6
4
Solved
I am using the same component for three different routes:
<Router>
<Home path="/" />
<Home path="/home" />
</Router>
Is there anyway to combine it, to be like:
<Rou...
Dap asked 5/10, 2019 at 13:36
0
I am experiencing an issue where I have a page with a matchPath set to /*.
This works for content that doesn't have special characters in the URL, such as my terms page. However, for my test page w...
Damascene asked 14/5, 2021 at 7:9
3
Solved
I have the following routing config:
<Router>
<NotFound default />
<ResourcesContainer path="/resources" />
<ResourceContainer path="/resources/:id" />...
Bleary asked 9/12, 2020 at 13:36
3
Solved
How does one get the current route for reach router. In react router one would get that through the params?
The docs don't currently show an example how to do this.
Deserved asked 1/7, 2019 at 15:7
7
Solved
When I navigate to a new page, Reach Router scrolls down to the page content past the header (if the content is long enough). I'm assuming this is for accessibility but it's not necessary for my ap...
Akela asked 30/10, 2018 at 5:45
2
Solved
I've a little problem with reach router, using react hooks. I need capture the params of the route in the browser
I tried with props of the native documentation in the web of reach router but that...
Hecker asked 21/10, 2019 at 19:15
0
I'm working with Gatsby.js
Everything was pretty nice since I've started building the menu.
When I clicked the Link component I've waited for about 2 seconds and then I was redirected to the next...
Gratulate asked 4/2, 2020 at 10:25
1
Solved
I am working on a Gatsby project (a language learning blog) and am having trouble with an issue that only happens in production builds due to server-side rendering.
I programmatically generate a p...
Sprag asked 18/1, 2020 at 22:53
2
Solved
I want to reroute the index / to /blog in a gatsby project. The page at /blog route is generated inside gatsby-node.js file.
What I tried is importing Redirect from @reach-router and inside the In...
Novelette asked 25/2, 2019 at 16:18
1
© 2022 - 2024 — McMap. All rights reserved.