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.
https://github.com/overture-stack/website/compare/develop...overture-docs-megamenu-fixDo 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
Some documentation pages fail to load when clicking between them from the documentation dropdown.
When running locally, you get this error:
Working Solution
I've isolated the error to the SectionTableofContents component more details in the following PR link. https://github.com/overture-stack/website/compare/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