Should observables always be cleared

Hi, I’m looking for leaking Observables. Should these always be cleared in it’s class declaration in the source code, usually in the dispose method?

I’d say so, yeah. :slight_smile: If a class creates and owns an observable, especially a public one, it should be cleared in some dispose() method of the class.

Have you noticed an observable somewhere in the BJS source code that might not be clearing properly?

1 Like