Skip to content

How properly use functionality without leaks? withinAsSingleStreamSubscription #33

@irizzaflutter

Description

@irizzaflutter

/// !WARNING! This causes memory leaks because under the hood rxdart StreamController
/// never causes it's subscriptions to be cancelled. So, even you cancel stream
/// subscription created from this method, under the hood listeners are still working.

.within()

when I try to replace it with .withinAsSingleStreamSubscription()

Stream<List> stream = geo.collection(collectionRef: collectionReference)
.withinAsSingleStreamSubscription(center: center, radius: radius, field: field);

its return me that

withinAsSingleStreamSubscription isn't defined for the class 'GeoFireCollectionRef'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions