块引用
照片(单击此处查看错误):出现错误:firestore.setListeners 不是函数
块引用
我刚刚将 redux-saga、redux-firestore 与 react-redux-firebase@2 集成在一起。. 并且它工作正常,但是当我尝试与其他组件集成时,我得到了这个错误..任何解决方案!谢谢
这是将 redux-firestore 与 react-reduc-firebase 集成的错误白色
代码:
import { compose } from 'redux'
import { connect } from 'react-redux'
// import { getFirestore } from 'redux-firestore';
import {
firestoreConnect,
createWithFirebase,
withFirebase,
firebaseConnect
} from 'react-redux-firebase'
*******
**etc**
*******
// export default Inventory;
export default compose(
// firestoreConnect([{collection: 'Invetory'}]),
firebaseConnect(),
connect(
({ firestore }) => ({
//todos: firestore.ordered.todos,
firestore
})
)
// connect((state) => ({
// auth: state.firestore.auth
// })
)(Inventory)