小编Dax*_*hen的帖子

如何观察 firebase.auth().currentUser.displayName 和其他属性的变化?

我使用的火力权威性和当用户改变他们的个人资料,如他们displayNamephotoURL或者emailonAuthStateChanged回调不会被解雇,但底层firebase.auth().currentUser就会自动更新。

我需要在用户更新他们的个人资料后更新 UI,即。我想firebase.auth().currentUser与客户商店(特别是vuex或类似redux商店)保持同步。

有没有办法观察firebase.auth().currentUser更改,或者我可以使用任何其他钩子在firebase.auth().currentUser更改时收到通知?

谢谢!

firebase firebase-authentication vuex

11
推荐指数
1
解决办法
3998
查看次数

标签 统计

firebase ×1

firebase-authentication ×1

vuex ×1