You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
When we call $save on a local object, we push the current value to the server. If a change occurs, then a child_changed event will be triggered. However, because the data will already be set locally, no change will occur, and therefore neither $FirebaseArray nor $FirebaseObject will trigger a $watch event after. Consider sending notifications for these?
The text was updated successfully, but these errors were encountered:
I would like to still get the notification. That way I can handle updates in other parts of the app the same way regardless of where the update came from (local or remote).
+1 for the notification. Until then, I'm using the promise returned by $save and calling the same function I specify for the $watch event. This seems a little repetitive, but I understand there is distinction between watching changes and watching when two locations are out of sync.
When we call
$save
on a local object, we push the current value to the server. If a change occurs, then a child_changed event will be triggered. However, because the data will already be set locally, no change will occur, and therefore neither$FirebaseArray
nor$FirebaseObject
will trigger a $watch event after. Consider sending notifications for these?The text was updated successfully, but these errors were encountered: