question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Routes component’s getComponentForPath prop removed?

See original GitHub issue

The 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
wappsifycommented, May 14, 2019

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 the reach-router one that comes with the basic 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-routes

Clone the repo, run yarn to install the dependencies, then yarn start to start it.

I hope this helps!

2reactions
wappsifycommented, May 6, 2019

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found