CSFrequency / react-firebase-hooks

React Hooks for Firebase.
Apache License 2.0
3.6k stars 306 forks source link

useMemo() with its dependency being a freshly created array will never memoize #215

Closed aarku closed 2 years ago

glaucoheitor commented 2 years ago

Is this the reason why useCollection and useDocument calls Firestore on every render? I'm trying to avoid expensive costs and avoid query the server on every render.

aarku commented 2 years ago

No, I misread the code. This issue should be deleted.