You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That cache gets written to, but never deleted from.
When values in that cache has references to a DOM element (as in the x-for example below), it effectively prevents garbage collection and leaks DOM elements and memory.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
evaluatorMemo
cache:alpine/packages/alpinejs/src/evaluator.js
Line 46 in 4f272c5
x-for
example below), it effectively prevents garbage collection and leaks DOM elements and memory.There is a example that reproduces this at https://alpine-testlab.netlify.app/leak1/ running with the latest AlpineJS -- description repeated below:
x-for
components are removed.Detached HTMLTemplateElement
You should now see 20 detached elements. If you click on one, it points to
evaluatorMemo
.Beta Was this translation helpful? Give feedback.
All reactions