x-data magics leak

Source Alpine src: /leak1/patched/patch-2126-cdn.js

Note that this runs with a patch for #2126.

This is simplest to do with the gc method exposed in Chrome, e.g. by running it with these flags (alternatively is to manually do GC in Chrome’s memory profiler and then check the content of window.leakDetector and/or the detached elements in profiler):

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --js-flags="--expose-gc" --enable-memory-info

With your Chrome console open:

You can also create a new memory profile in Chrome and filter by Detached elements.

There, you will see detached elements matching the below. If you click on one, it points to get $el and similar.

This story continues in patch2.

To be removed