Would GC work if I create many no-longer-used observables? #7206
-
For example, if I always create new observable on click or scroll by this callback: const onClick =()=>of(1,2,3).subscribe(console.log) Could garbage collector work to clean no longer used observable in browser? |
Beta Was this translation helpful? Give feedback.
Answered by
DoronTorangy
Apr 24, 2023
Replies: 1 comment
-
Pretty sure once the observable stream is completed, it will be garbaged collected |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gyhyfj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pretty sure once the observable stream is completed, it will be garbaged collected