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(v2): remove buggy routesLoaded + deprecate routesLoaded lifecycle #3141

Merged
merged 2 commits into from
Jul 28, 2020

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Jul 28, 2020

Motivation

routesLoaded was introduced to solve the conflict between homepage and docs home in docs-only mode. As the docs / has subroutes it's always matched with a lower priority than the homepage so this code actually produces a bug.

Also, routesLoaded is now deprecated because it was only used to solve this case, and I think we should not encourage plugin authors to modify the routes created by other plugins, but instead use proper routes config and priority rules

@slorber slorber requested a review from yangshun as a code owner July 28, 2020 10:44
@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Jul 28, 2020
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jul 28, 2020
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit f94cc5d

https://deploy-preview-3141--docusaurus-2.netlify.app

@slorber slorber merged commit d25d4b0 into master Jul 28, 2020
@yangshun yangshun deleted the slorber/remove-docs-home-route-deletion branch August 26, 2020 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants