Skip to content

AngularFireUploadTask snapshot state doesn't change upon cancellation - AngularFireStorage #1805

@yuliankarapetkov

Description

@yuliankarapetkov

Version info

Angular: 6.03

Firebase: 5.2.0

AngularFire: 5.0.0-rc.11

How to reproduce these conditions

Steps to set up and reproduce

Subscribe to snapshotChanges and log the value of the snapshot. Cancel the AngularFireUploadTask through the cancel() method. Snapshot doesn't change => snapshot.state === 'running', instead of snapshot.state === 'cancelled'

Expected behavior

snapshot has a new value with state === 'cancelled'

Actual behavior

snapshot doesn't have a new value, so state === 'running'

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