feat(feature-flags): error callback
Changes
-
Fixes feature flags sending
[]when/decideerrors - Implements
posthog.onDecideError(error => console.log(error))to alert users when/decidefails, e.g. via ad blockers.
Requested by a customer.
Checklist
- [ ] Tests for new code (see advice on the tests we use)
- [ ] Accounted for the impact of any changes across different browsers
- [ ] TypeScript definitions (module.d.ts) updated and in sync with library exports (if applicable)
@benjackwhite as you want to work on the JS libraries soon, here's a challenge. Help me get this PR in 😅
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.
This PR was closed due to lack of activity. Feel free to reopen if it's still relevant.
Hey! What are the next steps in this PR? As a posthog dev user, I wanna know when posthog is failed, please let me know if I can help