[Bug] Routes component’s getComponentForPath prop removed?
See original GitHub issueThe removal of getComponentForPath
was not mentioned in the changelog and I can no longer find it in the source code of V7.
Animated Routes example is still using it, so it’s probably no longer working.
It would be good to amend the changelog and mention this breaking change.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top Results From Across the Web
[Bug]: Wrapper for component passed in the "element" prop for ...
When I pass element to the Route like that: <Route path="/" element={ <ProtectedRoute> <Profile /> </ProtectedRoute> } />;. it only re-renders ...
Read more >Component does not remount when route parameters change
The idea is to change components key property when the URL changes and this forces React to re-mount the component.
Read more >apispec - Read the Docs
title: Swagger Petstore. # version: 1.0.0. # openapi: 3.0.2. # components: # schemas: #. Category: # properties:.
Read more >Web on Reactive Stack - Spring
Spring WebFlux provides an annotation-based programming model, where @Controller and @RestController components use annotations to express ...
Read more >Component and Window Scripting - Ignition User Manual 7.9
To move up or down within the hierarchy, there are two special commands we can use on component objects: parent and getComponent(). The...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @simonunlikely et al., we have since figured out a way to implement animated routes with react-static v7. However we have switched to use
react-static-plugin-react-router
instead of thereach-router
one that comes with thebasic
template of react-static.We implemented the page transitions with
react-spring
, however you can use your preferred animation library.You can find a working minimal example (based on the
basic
react-static example) here: https://github.com/wappsify/react-static-v7-animated-routesClone the repo, run
yarn
to install the dependencies, thenyarn start
to start it.I hope this helps!
If anybody has gotten them to work, I would also appreciate a nudge in the right direction regarding how to implement animated routes with react-static v7!