Skip to content

Conversation

@dangreaves
Copy link
Contributor

@dangreaves dangreaves commented Mar 13, 2021

This merge request corrects the type for the new refField attribute from string to firebase.firestore.DocumentReference<T>.

With this update, if refField was set to ref, one can call item.ref.collection()... etc, and get types as expected.

@chrisbianca chrisbianca merged commit 0a02463 into CSFrequency:master Mar 16, 2021
@chrisbianca
Copy link
Contributor

@dangreaves good catch, thanks for the submission. I'll make the same changes for the real-time database then get a patch release done

@chrisbianca
Copy link
Contributor

This has now been released in https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v3.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants