When the portal helper is used in an app served by done-ssr, the CanSimpleDocument and its elements, nodeLists, scopes, and related observables are retained in memory after the page has completed rendering.
Steps to reproduce:
Create a page with an autorendered index.stache that loads other components which manipulate the title or meta through {{#portal(head)}}
serve it through an express app with done-ssr serving the page route.
Load the page once or twice
Open a debugger against the server and take a memory heap snapshot
Load the page again
Take a second heap snapshot, examining the "Comparison" between the two snapshots.
Expected results:
The comparison should show 1 new CanSimpleDocument and 1 deleted CanSimpleDocument, and some equal number of new and deleted Elements.
Actual results:
The comparison shows 1 new CanSimpleDocument and 0 deleted CanSimpleDocuments, with 0 deleted Elements.
How often can you reproduce it?
When the
portal
helper is used in an app served by done-ssr, the CanSimpleDocument and its elements, nodeLists, scopes, and related observables are retained in memory after the page has completed rendering.Steps to reproduce:
{{#portal(head)}}
Expected results:
The comparison should show 1 new CanSimpleDocument and 1 deleted CanSimpleDocument, and some equal number of new and deleted Elements.
Actual results:
The comparison shows 1 new CanSimpleDocument and 0 deleted CanSimpleDocuments, with 0 deleted Elements.
Environment: