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(core): move browserContext and docusaurusContext out of client exports #6955

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

Josh-Cena
Copy link
Collaborator

Motivation

routeContext is architectured this way. I think it's cleaner than putting everything in exports, since these contexts aren't public APIs anyways.

Have you read the Contributing Guidelines on pull requests?

Yes

@Josh-Cena Josh-Cena added the pr: maintenance This PR does not produce any behavior differences to end users when upgrading. label Mar 22, 2022
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Mar 22, 2022
@netlify
Copy link

netlify bot commented Mar 22, 2022

✅ [V2]

🔨 Explore the source changes: d12eb17

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/623935c8444423000885a484

😎 Browse the preview: https://deploy-preview-6955--docusaurus-2.netlify.app

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 49
🟢 Accessibility 100
🟢 Best practices 92
🟢 SEO 100
🟢 PWA 90

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

@github-actions
Copy link

Size Change: 0 B

Total Size: 805 kB

ℹ️ View Unchanged
Filename Size
website/.docusaurus/globalData.json 49.9 kB
website/build/assets/css/styles.********.css 105 kB
website/build/assets/js/main.********.js 612 kB
website/build/index.html 38.8 kB

compressed-size-action

@Josh-Cena Josh-Cena merged commit 0a5354d into main Mar 22, 2022
@Josh-Cena Josh-Cena deleted the jc/move-context branch March 22, 2022 06:30
@slorber
Copy link
Collaborator

slorber commented Mar 23, 2022

👍 wanted to do this follow-up refactor

note that exposing docusaurus context provider might still be useful in the future for some theme authors that want to write tests, not sure they should use the same import as we do 😅

@Josh-Cena
Copy link
Collaborator Author

theme authors that want to write tests

We would provide a unified testing interface.

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: maintenance This PR does not produce any behavior differences to end users when upgrading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants