prescottprue / react-redux-firebase

Redux bindings for Firebase. Includes React Hooks and Higher Order Components.
https://react-redux-firebase.com
MIT License
2.55k stars 558 forks source link

bug(types): ExtendedFirestoreInstance doesn't extend FirestoreStatics from 3.8.0 any more #1030

Closed ondrejhudek closed 3 years ago

ondrejhudek commented 3 years ago

In version 3.7.0 ExtendedFirestoreInstance used to extend FirestoreStatics.

Now in new 3.8.0 this extend was removed so the instance of useFirestore() which is a type of ExtendedFirestoreInstance doesn't have props of FirestoreStatics.

Because of this problem I cannot for example use prop FieldValue which exists on FirestoreStatics.

image

prescottprue commented 3 years ago

Thanks for reporting - open to a PR if you get a chance, otherwise I will try to get to it this weekend

keithkelly31 commented 3 years ago

Just wondering if there was any progress on this?

prescottprue commented 3 years ago

v3.9.0 release includes the fix for this, thanks for reporting!