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

refactor: remove long-deprecated routesLoaded lifecycle #7257

Merged
merged 1 commit into from
May 4, 2022

Conversation

Josh-Cena
Copy link
Collaborator

Motivation

Close #3918. After 1 year and a half, we only had one user complaining, and there's no follow-up. I can only assume that this is going to impact no-one.

#3918 mentioned search plugins as a use-case. We now have many successful search plugins that read the routes data through postBuild, so I believe there's no valid use-case of this lifecycle anymore.

Have you read the Contributing Guidelines on pull requests?

Yes

@Josh-Cena Josh-Cena added the pr: breaking change Existing sites may not build successfully in the new version. Description contains more details. label Apr 28, 2022
@Josh-Cena Josh-Cena requested a review from lex111 as a code owner April 28, 2022 08:06
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Apr 28, 2022
@github-actions
Copy link

github-actions bot commented Apr 28, 2022

Size Change: 0 B

Total Size: 802 kB

ℹ️ View Unchanged
Filename Size
website/.docusaurus/globalData.json 50.1 kB
website/build/assets/css/styles.********.css 107 kB
website/build/assets/js/main.********.js 607 kB
website/build/index.html 38.8 kB

compressed-size-action

@slorber
Copy link
Collaborator

slorber commented Apr 28, 2022

Let's wait until next week if we get an answer from op in #3918, and then move on 👍

Note: I'm thinking about adding another lifecycle to replace this one, but with a different API and use-case in mind: the ability for one route to "pick data" from another. The idea would be for example to be able to inject a list of blog post, or a doc, as props to your homepage, and similar use-cases. No API design, just a rough idea.

@Josh-Cena Josh-Cena force-pushed the jc/remove-routesloaded branch from 1f4899c to c313363 Compare April 28, 2022 14:28
@Josh-Cena Josh-Cena force-pushed the jc/remove-routesloaded branch from c313363 to 197579b Compare April 29, 2022 10:03
@Josh-Cena Josh-Cena requested a review from slorber as a code owner April 29, 2022 10:03
@netlify
Copy link

netlify bot commented Apr 29, 2022

[V2]

Name Link
🔨 Latest commit 197579b
🔍 Latest deploy log https://app.netlify.com/sites/docusaurus-2/deploys/626bb7f200121200080fa52e
😎 Deploy Preview https://deploy-preview-7257--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 64
🟢 Accessibility 100
🟠 Best practices 83
🟢 SEO 100
🟢 PWA 90

Lighthouse ran on https://deploy-preview-7257--docusaurus-2.netlify.app/

@Josh-Cena Josh-Cena added the status: awaiting review This PR is ready for review, will be merged after maintainers' approval label May 2, 2022
@slorber slorber merged commit b1cafe7 into main May 4, 2022
@slorber slorber deleted the jc/remove-routesloaded branch May 4, 2022 10:32
@Josh-Cena Josh-Cena removed the status: awaiting review This PR is ready for review, will be merged after maintainers' approval label May 4, 2022
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: breaking change Existing sites may not build successfully in the new version. Description contains more details.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v2] Keeping or replacing routesLoaded lifecycle
3 participants