3 ms·
MDN has a bit more info on the new FinalizationRegistry API. Has anyone ideas about good use cases for this? https://developer.mozilla.org/en-US/docs/Web/JavaS
by kamilafsar 5y ago
MDN has a bit more info on the new FinalizationRegistry API. Has anyone ideas about good use cases for this?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- slmjkdbtl 5y agohad a use case a couple days ago in an observer pattern where a computed observable's parent should drop the subscription event feom the sub list when the computed child is no longer around, ended up only using WeakRef