canjs / can-stache

Live binding handlebars templates
https://canjs.com/doc/can-stache.html
MIT License
10 stars 13 forks source link

Memory leaks can be seen in SSR'ed pages when the {{portal}} helper is used. #684

Closed bmomberger-bitovi closed 5 years ago

bmomberger-bitovi commented 5 years ago

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:

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:

Software Version
can-stache version 4.17.10
Browser done-ssr
Operating system MacOS 10.14