CSFrequency / react-firebase-hooks

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

reload() doesn't update existing items with useCollectionOnce #300

Open ZakKa89 opened 1 year ago

ZakKa89 commented 1 year ago

I'm guessing this is more of a cache issue with firebase than the library. But I was wondering if somebody bumped into the same issue and has a solution.

The issue

if you update an item in a collection, and use the reload() function to refetch, the item will not not be updated. The refetch is only useful in adding or deleting items.

Possible workarounds