The $ add corner function will cause the browser to freeze

I am learning Firebase using angularjs. From this tutorial, https://thinkster.io/tutorials/angularfire-realtime-slack-clone/creating-the-channels-sidebar the code used to add a new chat is as follows

channels.$add(vm.newRoom).then(function (ref) { 

However, when I run the application, this $ add operation successfully adds a new entry to the firebase table, but also causes the entire browser to freeze.

Angular version: 1.6.2 Firebase: 3.7.1 AngularFire: 2.1.0

+5
source share
2 answers

This is a bug in Firebase 3.7.1. When I get back to Firebase 3.7.0, my code works and my browsers don't freeze. I reported an error for Firebase.

+6
source

This has been recently fixed in Firebase 3.8.0. We recommend upgrading and not returning at the moment!

0
source

Source: https://habr.com/ru/post/1265344/


All Articles