prescottprue / redux-firestore

Redux bindings for Firestore
MIT License
575 stars 102 forks source link

feat(query): pass missing index error message to action dispatch (so logListenerError is not needed) #207

Open prescottprue opened 5 years ago

prescottprue commented 5 years ago

What is the feature?

What version would this apply to?

illuminist commented 5 years ago

From https://github.com/prescottprue/react-redux-firebase/issues/658

I didn't provide logListenerError to rrf config in the repro. I think it's firebase itself logging out the error.

prescottprue commented 5 years ago

@illuminist It is from the error case of attaching the query, which redux-firestore uses internally so that it can dispatch an error action - so providing that config option makes sure to still log the error.

illuminist commented 5 years ago

https://github.com/prescottprue/redux-firestore/blob/cd9eb5c580e9e69886d4f1df1929c45adbe6081f/src/constants.js#L117

I see it now. logListenerError is defaulted to true so that's why it logs an error without explicitly setting it.