We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const mapStateToProps = (state) => { console.log(state) return { projects:state.firestore.ordered.projects } }
export default compose( connect(mapStateToProps), firestoreConnect([ { collection: 'projects' },
]) )(HomeContent)
error:
TypeError: Cannot read property 'dispatch' of null (anonymous function) D:/webserv4u/src/firestoreConnect.js:113 110 | {(_internalFirestore) => ( 111 | <FirestoreConnectWrapped 112 | {...props}
113 | dispatch={_internalFirebase.dispatch} | ^ 114 | firestore={_internalFirestore} 115 | firebase={_internalFirebase} 116 | />
Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?
The text was updated successfully, but these errors were encountered:
Could you prove a full repro including setup? Seems like firebase instance isn't being picked up
Sorry, something went wrong.
Jump to using hooks... useFirestoreConnect() from 'react-redux-firebase' useSelector() from 'react-redux'
No branches or pull requests
const mapStateToProps = (state) => {
console.log(state)
return {
projects:state.firestore.ordered.projects
}
}
export default compose(
connect(mapStateToProps),
firestoreConnect([
{ collection: 'projects' },
])
)(HomeContent)
error:
TypeError: Cannot read property 'dispatch' of null
(anonymous function)
D:/webserv4u/src/firestoreConnect.js:113
110 | {(_internalFirestore) => (
111 | <FirestoreConnectWrapped
112 | {...props}
Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?
The text was updated successfully, but these errors were encountered: