【发布时间】:2019-03-03 23:13:47
【问题描述】:
当使用以下方法时
firebaseDb.child('somechile').on('child_changed', cb)
通过在网络选项卡、Web 套接字 (WS) 中的开发人员工具 (chrome) 中观察 Web 套接字连接的帧,我注意到 firebase sdk 下载的整个数据集在启动时存在于“somechild”中监听器(不仅改变)。
这是正确的行为吗? 我期待看到“somechild”中只存在对数据集的更改(即,在启动侦听器时什么都没有)。
任何建议。
【问题讨论】:
标签: firebase firebase-realtime-database listener