Skip to content

$ref no longer available, can't do onDisconnect calls anymore.  #1287

@aaronfrost

Description

@aaronfrost

Version info

Angular: 4.4.6

Firebase: 4.6.0

AngularFire: 5.0.0-rc.3

Other (e.g. Ionic/Cordova, Node, browser, operating system):

How to reproduce these conditions

Prior to upgrading to v5, the following code worked.

let donuts = this.db.object(`DONUTS`);
donuts.$ref.onDisconnect().set(false);

Now it no longer works as I can't access the $ref property from the result of the call to this.db.object(). Any ideas on how I might regain onDisconnect functionality? I didn't see this change in the migration docs, so this caught me off guard.

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