react-firebase-hooks
react-firebase-hooks copied to clipboard
Add ability to retry hook in the event of hook returning an error
How can one reevaluate the hook if the hook fails and returns an error?
@Zanchee the Firestore xxxOnce hooks have a manual reload function that gets returned by the hook, but no other hooks do at the moment.
Are there particular hooks where you think this would be useful?
Ahh interesting. The firebase real-time database hooks would be great! Do the non-one time hooks continuously retry if there is an error already? 😊
@Zanchee Having reviewed this one in a bit more detail, the real-time database hooks don't have the equivalent xxxOnce hooks so it's not really possible to add a reload method.
Given the lack of requests for xxxOnce style hook in the real-time database, I'm not going to add this at the moment. If that changes, then I will do with the reload functionality.