Closed SchlagerKhan closed 1 year ago
Without internet access, the client will eventually warn about an Possible Unhandled Promise Rejection.
Possible Unhandled Promise Rejection
I'm guessing this is a minor issue - but still, it is:
I at least wish for a way of silencing these warnings, but maybe also a new option property (called onFetchError?) for handling these situations.
onFetchError
client.options.fetchRetryCount
react-native@0.69.8 posthog-react-native@2.5.0
Thanks for this, fix is on its way
Wouldn't there be a similar issue with posthog-node?
posthog-node
Not after this: https://github.com/PostHog/posthog-js-lite/pull/75
Bug description
Without internet access, the client will eventually warn about an
Possible Unhandled Promise Rejection
.I'm guessing this is a minor issue - but still, it is:
I at least wish for a way of silencing these warnings, but maybe also a new option property (called
onFetchError
?) for handling these situations.How to reproduce
client.options.fetchRetryCount
to 0 (optional)Related sub-libraries
Additional context
Thank you for your bug report – we love squashing them!