Any way to set observer order for Firebase?
<p>I'm using the Objective-C API, though I would imagine that this question is valid regardless of language.</p>

<p>I'm trying to write my code so that my app observes when child objects are removed from a particular node. When a child object is removed, I make local changes so that the local version of that child object is deleted.</p>

<p>I also have observers set for each child object's children on Firebase. This is so that I can propagate changes to those values locally as soon as they are made.</p>

<p>My observers are (finally!) working just fine – except that when I delete an object from Firebase, it seems like the observers for the object's children are triggered before the observer for the object's parent. E.g.,</p>

<p>If I have several blog posts listed under <code>$userId/blogs/</code> according to their <code>$blogId</code>, and if each blog post has properties such as <code>name</code> and <code>text</code>, it seems like the <code>FEventTypeValue</code> observers at <code>$userId/blogs/$blogId/name</code> and <code>$userId/blogs/$blogId/text</code> are triggered before the <code>FEventTypeChildRemoved</code> observer at <code>$userId/blogs</code> when I set a particular <code>$blogId</code> to nil.</p>

<p>Any idea how I can set it so that the <code>FEventTypeChildRemoved</code> observer triggers before the <code>FEventTypeValue</code> observers? The alternative would be to always check whether the parent object exists when observing a change to a property on Firebase, but this to me seems like overkill.</p>