Skip to content

Documentation page loading bug  #349

Description

@MitchellShiell

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions