Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firing an event when a set or update fails #93

Open
ericdes opened this issue Nov 22, 2015 · 2 comments
Open

Firing an event when a set or update fails #93

ericdes opened this issue Nov 22, 2015 · 2 comments

Comments

@ericdes
Copy link

ericdes commented Nov 22, 2015

Hello,

I would like to listen to 'set' or 'update' failures (e.g. because of a rule not matching, etc).

I wrote a quick fix for myself in Typescript:

  this.query.child(key).set(value, (error) => {
    this._log(error);
    this.fire('firebase-set-error', error);
  }); 

However I think it'd better be implemented following your coding style, but I'm not really fluent in Javascript... And you probably have a pattern in mind...

Please let me know your thoughts.
Eric.

@MeTaNoV
Copy link
Contributor

MeTaNoV commented Dec 13, 2015

+1

1 similar comment
@redian
Copy link

redian commented Dec 13, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants