Open apptimise opened 8 years ago
Hello! Please use the non minimized versions of the libs (firebase-debug.js and firebase-util.js) and make sure you're on the latest versions. Update the stack trace with the non-minified versions. Provide a working, minimal repro or submit a PR with a failing test case.
Any updates on this, I am facing the same situation here, just try removing an item, and you will get an exception. I think this is a very critical bug. Please help.
Its happening at Record.js in the following function:
update: function(pathName, snap) { this.snaps[pathName] = snap; this._checkLoadState(); util.log('Record.ValueEventManager.update: url=%s, loadCompleted=%s', snap.ref().toString(), this.loadCompleted); if( this.loadCompleted ) { this.rec.trigger(new SnapshotFactory('value', this.rec.getName(), util.toArray(this.snaps))); } },
snap value is null.
FIREBASE WARNING: Exception was thrown by user callback. TypeError: Cannot read property 'ref' of null
Surrounding the function code with if(snap){...} seems to silence the problem, but I don't know if it solves it.
I have a
service
with the following function:After binding this to a $scope variable:
$scope.frRequested = Friends.getRequested(authData.uid);
Now if I remove a record as follows:
$scope.frRequested.$remove(friend);
I get the following WARNING:
I have tried a similar situation without using the NormalizedCollection, and everything works fine, i.e. when the service is as follow, it works without a problem:
Is this a bug?