Skip to content

Unsubscribing should clear all data associated with that subscription. #1

Open
@tannerpreiss

Description

@tannerpreiss

If I do a listen:

CSKey deviceKey = CSKey.fromString("a.b.c");
Subscription subscription = csApp.listen(deviceKey)
    .subscribe(response -> Log.d("tag", response));

Then later I unsubscribe to that subscription:

deviceKey.unsubscribe();

Then the data at "a.b.c" changes a few times

Then I resubscribe to "a.b.c":

CSKey deviceKey = CSKey.fromString("a.b.c");
Subscription subscription = csApp.listen(deviceKey)
    .subscribe(response -> Log.d("tag", response));

In the subscribe callback for my new subscription I will receive the value at "a.b.c" at the time of my initial unsubscription, and then will also receive the current value at "a.b.c". I only want to receive the current value upon resubscription of a path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions