首页 > 解决方案 > 如何使用 firestoreConnect 将多个数据库获取到 redux firestore 数据库?

问题描述

我正在我的反应应用程序中尝试此代码,并希望从 firestore 数据库中获取通知 集合

export default compose(
    firestoreConnect(() => [
        {collection: "projects"},
        {collection: "notifications", limit: 3}
    ]),
    connect(mapStateToProps)
)(dashboard)

但我收到了这个错误

redux-firestore 侦听器错误:FirebaseError:“权限缺失或不足。”

虽然,我能够获取项目集合,但是当我为通知集合编写代码时,我在控制台中得到了上述粗体错误文本。

标签: reactjsfirebasegoogle-cloud-firestorereact-redux

解决方案


推荐阅读