Skip to content
This repository has been archived by the owner on Apr 12, 2020. It is now read-only.

path="*": it doesn't react to path changes. #49

Closed
raguay opened this issue Oct 24, 2019 · 5 comments
Closed

path="*": it doesn't react to path changes. #49

raguay opened this issue Oct 24, 2019 · 5 comments

Comments

@raguay
Copy link

raguay commented Oct 24, 2019

I'm using the following:

<Route fallback path="*" component={Page} />

To send routes to the Page component that will lookup the path and see if there is a corresponding markdown file. If there is, it renders it. But, the Page component isn't getting anything when I go to one page and then another that would match it. If I go the a page that is a different component with it's own path, it changes fine. But, going from two pages that would match the above rule does absolutely nothing.

@raguay
Copy link
Author

raguay commented Oct 25, 2019

An interesting twist: if the path is '/blog/item' and the next click is to '/item', then the page does change. Both routes are picked up with the * component. If two routes are on the same "level", then the page doesn't refresh.

@pateketrueke
Copy link
Contributor

Hi, can you help me to setup a gist to understand this better?

@raguay
Copy link
Author

raguay commented Nov 27, 2019 via email

@pateketrueke
Copy link
Contributor

I'm trying to understand but I'm not able to reproduce your application, sorry.

@kazzkiq
Copy link
Owner

kazzkiq commented Apr 12, 2020

Svero is now deprecated. Check #68 for alternatives.

@kazzkiq kazzkiq closed this as completed Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants