Skip to content
Discussion options

You must be logged in to vote

Yes, it comes from the number of ComponentState instances. Every call to ProjectDropdownMenu.create() defines a new state class (ProjectDropdownMenu_n1, _n2, ...), and the two popover_form calls inside it define two more PopoverForm_nX classes (ComponentState.create). They all land in one app-wide state tree, so a page with a single menu still renders the providers for every menu on all 23 pages. With 23 pages × 7 menus × 3 classes that is 483 substates.

Up to 0.9.x the frontend wraps the whole app in a nested provider pair for each substate (StateProvider in v0.9.13). React's server renderer recurses once per level, and with a few hundred substates the dev server runs out of stack. When …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@IEC1
Comment options

Answer selected by IEC1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants