-
If I simply cancel subscription is it enough to right memory management? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, moor will evict cached data shortly after the last listener detaches from a stream.
If you call |
Beta Was this translation helpful? Give feedback.
Yes, moor will evict cached data shortly after the last listener detaches from a stream.
If you call
watch()
while another listener is active, the stream will be re-used. You might get a different stream instance, but they will be powered by the same underlyingStreamController
. Further, moor will cache the latest value of a stream so that the query won't be run if it's not necessary.