PricingBlog

Package - Stack size is exceeded on Homepage

  • the_guy01-1226457024116822077

    the_guy

    1 year ago

    While working on my ENV wrapper component to release it as a Package, I was about to work on the Homepage to explain how the i18n works - when I pasted in another step, the page in the editor vanished and I get a console log that a stack size is exceeded.

    Additionally to that the left element tree is gone - its just for the Homepage, when I create a new empty page everything works as intended.

    Is there a limit to how many elements can be rendered in this element tree?


    If you open the URL, it just gives you a black screen with the same error message.

    https://start-ps_env.toddle.site/

    I think the only quick fix here is to remove some items from the stack so I can see the element tree again.
    1226457024733253682-Screenshot_2024-04-07_at_13.01.00.png
    1226457025286770698-Screenshot_2024-04-07_at_13.01.10.png
  • andreasmoller-1226467479098884167

    Andreas Møller

    1 year ago

    The “stack” in JavaScript is how many nested functions can be called as a response to a single event
  • The stack size in chrome is ~ 27,000
  • This error usually only occurs when you have a function calling it self indefinitely
  • andreasmoller-1226468076279828602

    Andreas Møller

    1 year ago

    Did you best a component inside it self without a show/hide clause?
  • the_guy01-1226469775039791215

    the_guy

    1 year ago

    No, this error happened when I copy pasted a section of the homepage to add more explanation