CSFrequency / react-firebase-hooks

React Hooks for Firebase.
Apache License 2.0
3.58k stars 304 forks source link

fix(snapshotToData): 'snapshot.exists()' is method, not property. #295

Open stefanbugge opened 1 year ago

stefanbugge commented 1 year ago

snapshot.exists() should be called as a method.

This was previously fixed in v4 but has been reintroduced in v5. Previous bugfix: https://github.com/CSFrequency/react-firebase-hooks/pull/179