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): reset sidebar state on sidebar changes #3418

Merged
merged 1 commit into from
Sep 7, 2020

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Sep 7, 2020

Motivation

When rendering sidebar 1, and navigating to a page using sidebar 2, we should unmount/remount sidebar instead of trying to update it in place, or it can mess up with sidebar state.

Should fix #3414

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

preview

@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Sep 7, 2020
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Sep 7, 2020
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit eacc06c

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

@slorber slorber merged commit 1797595 into master Sep 7, 2020
@lex111 lex111 deleted the slorber/reset-sidebar-state branch October 7, 2020 12:16
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.

Duplicate menu items don't get unmounted, corrupted sidebar
3 participants