reactjs - 如何使用 firestoreConnect 将多个数据库获取到 redux firestore 数据库?
问题描述
我正在我的反应应用程序中尝试此代码,并希望从 firestore 数据库中获取通知 集合
export default compose(
firestoreConnect(() => [
{collection: "projects"},
{collection: "notifications", limit: 3}
]),
connect(mapStateToProps)
)(dashboard)
但我收到了这个错误
redux-firestore 侦听器错误:FirebaseError:“权限缺失或不足。”
虽然,我能够获取项目集合,但是当我为通知集合编写代码时,我在控制台中得到了上述粗体错误文本。
解决方案
推荐阅读
- web - 如何在我自己的网站 URL 上镜像某些网站?
- android - 使用 Scala 进行 Android 开发
- vue.js - 为动态 nuxt 页面创建电报即时视图
- angular - 有没有办法限制动态创建的 Angular 屏幕?
- javascript - 我如何用网格水平居中文本
- alasql - alasql 从对象而不是数组中选择
- python - 使用一系列图像和 fps 值的 moviepy 保存视频会导致播放时的 fps 太快
- kotlin - 如何在 Gradle Kotlin DSL 中重用库声明?
- javafx - JavaFX 自定义图表类 - 如何将节点的 layoutX 和 layoutY 属性绑定到 NumberAxis 的显示位置?
- javascript - 将数据从服务器发送到客户端