polymerfire icon indicating copy to clipboard operation
polymerfire copied to clipboard

Have on-error event on firebase-document on getting and saving event

Open tjmonsi opened this issue 9 years ago • 3 comments

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

tjmonsi avatar Sep 22 '16 15:09 tjmonsi

+1 this is absolutely needed

iSuslov avatar Oct 30 '16 11:10 iSuslov

Also, an event listener for isNew, maybe onIsNew="someFunction".

MarcMouallem avatar Dec 15 '16 23:12 MarcMouallem

Someone write a patch because it would take the PolymerFire team the better half of the century to get on this, haha.

MarcMouallem avatar Dec 16 '16 00:12 MarcMouallem