Skip to content

Conversation

lucacasonato
Copy link
Contributor

The error type used to be object but this prevented autocomplete and Typescript strictly checking types without the user having to manually specify the type with error as FirebaseError or <FirebaseError>error. This has been corrected so the error type is always FirebaseError.

I don't know how Flow works so I think what I did should work but I am not sure.

@chrisbianca chrisbianca merged commit ee43cb1 into CSFrequency:master May 7, 2019
chrisbianca added a commit that referenced this pull request May 7, 2019
@chrisbianca
Copy link
Contributor

@lucacasonato Thanks for this, it's a great spot!

I've merged and made a few minor tweaks here to fix the flow type and move the transformError helper method into the firestore package: eaecf9c

I'll get a bug release out shortly.

@lucacasonato
Copy link
Contributor Author

👍

@chrisbianca
Copy link
Contributor

This has been released as part of v1.2.1: https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v1.2.1

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