Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(resourcesRoutes): Added prop exact to all resources routes #3026

Closed
wants to merge 2 commits into from
Closed

fix(resourcesRoutes): Added prop exact to all resources routes #3026

wants to merge 2 commits into from

Conversation

kopax
Copy link
Contributor

@kopax kopax commented Mar 20, 2019

Fix #3021
Fix #2910

@Kmaschta
Copy link
Contributor

Well, well! E2E tests are failing, especially on with custom pages.

Copy link
Contributor Author

@kopax kopax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@djhi I have investigated and I found out the fix you suggested was not producing the expected result.

Adding exact in here will do it on one route:

<Route path={`/${child.props.name}`} />

image

There is no props spread on these routes so there's no way to pass it from any parent. I suggest to restore the 1st fix. It directly set the exact props to true to each resource route.

Edit

See comment here.

@fzaninotto
Copy link
Member

As seen in #2910, we won't address that issue.

@fzaninotto fzaninotto closed this Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] resourcesRoutes list is sensitive to ordering
4 participants