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

Documentation page loading bug #349

Open
MitchellShiell opened this issue Nov 16, 2023 · 0 comments
Open

Documentation page loading bug #349

MitchellShiell opened this issue Nov 16, 2023 · 0 comments
Assignees

Comments

@MitchellShiell
Copy link
Contributor

MitchellShiell commented Nov 16, 2023

Some documentation pages fail to load when clicking between them from the documentation dropdown.

When running locally, you get this error:

15048 |   if (!!didRenderTooFewHooks) {
  15049 |     {
> 15050 |       throw Error( "Rendered fewer hooks than expected. This may be caused by an accidental early return statement." );
  15051 |     }
  15052 |   }
  15053 | (edited) 
  • Specifically when clicking between updated docs pages (arranger, DMS-UI and Song)
  • The issue does not occur when moving between older docs pages (Score, Maestro and Ego) or accessing any pages from the URL.
  • The error only occurs form the megaNav, mobile menu works as expected

Working Solution

I've isolated the error to the SectionTableofContents component more details in the following PR link.
develop...overture-docs-megamenu-fix
Do not use this fix, it introduces some new bugs, however this demonstrates that the issue stems from this component, particularly the useState nested within the if statment

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

No branches or pull requests

2 participants