Open
Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I'm using the following code in my app:
export default compose(
connect(mapStateToProps),
firebaseConnect(props => ({
path: 'channels',
queryParams: ['orderByChild=receiver', `equalTo= EAbx9f4RtNRjVBR1ABuTUxMBmps2`],
})),
)(Incoming);
The view is populated, however an unhandled promise error appears after a second. Database: Client doesn't have permission to access the desired data.
The following code works:
firebase.database().ref('/channels')
.orderByChild('receiver')
.equalTo('EAbx9f4RtNRjVBR1ABuTUxMBmps2')
.once('value', (snapshot) => {
const channels = _.map(snapshot.val(), (val, uid) => { uid });
console.log(channels.length);
});
The rules are simple:
{
"rules": {
"channels": {
".read": "auth != null",
".write": "auth != null",
},
},
}
What is the expected behavior?
No unhandled promise warning should appear.
Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?
2.1.8