From e92cce20c05e6e51fc5c3e6e78247d1d41fd6f2a Mon Sep 17 00:00:00 2001 From: Vyrtsev Mikhail Date: Sun, 4 Aug 2019 17:22:41 +0300 Subject: [PATCH] replace map with WeakMap --- frontend/app/components/root/in-view/in-view.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/components/root/in-view/in-view.tsx b/frontend/app/components/root/in-view/in-view.tsx index ff5d85ca..c6a2c005 100644 --- a/frontend/app/components/root/in-view/in-view.tsx +++ b/frontend/app/components/root/in-view/in-view.tsx @@ -10,7 +10,7 @@ interface State { ref: Element | undefined; } -const instance_map: Map> = new Map(); +const instance_map: WeakMap> = new WeakMap(); const observer = new IntersectionObserver( entries => {