Need WeakRef to do this, but it is stalled due to GC observability concerns. I wrote an impl for V8 but @DeanTribble is probably who you would want to chat with to get through TC39. 3rd party real world use cases would help.
-
-
-
Oh nice! Yeah, our use case is to replace an LRU cache with something that removes references once elements are removed from the DOM. Keeping track of things in two places is really hard. It's easier to keep track of them in just one place. This allows for that (:
End of conversation
New conversation -
-
-
Something like https://www.npmjs.com/package/weak-value-map … ? I don’t think you can get away without native code currently.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.