Have on-error event on firebase-document on getting and saving event
Description
Would it be better if there's an event handler when saving/reading data in firebase-document?
Based on firebase documentation, set(), update(), transaction(), on() has the ability to catch errors and show them. But firebase-document doesn't have yet the capability to throw events when we get an error.
Expected outcome
when firebase call set, and there's an error, it should fire an error event
Actual outcome
no event is called
Live Demo
Steps to reproduce
Browsers Affected
- [x ] Chrome
- [ x] Firefox
- [x ] Safari 9
- [x ] Safari 8
- [x ] Safari 7
- [x ] Edge
- [x ] IE 11
- [x ] IE 10
+1 this is absolutely needed
Also, an event listener for isNew, maybe onIsNew="someFunction".
Someone write a patch because it would take the PolymerFire team the better half of the century to get on this, haha.