overture-stack / website

Overture.bio website, based on Gatsby static site generator
GNU Affero General Public License v3.0
1 stars 2 forks source link

docs bug fix #351

Closed MitchellShiell closed 7 months ago

MitchellShiell commented 7 months ago

Documentation page loading bug #349

This PR addresses the React hooks error narrowed down to the sectionTableOfContents component

Issue

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