Conversation
🦋 Changeset detectedLatest commit: 9f3f3af The changes in this PR will be included in the next version bump. This PR includes changesets to release 24 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
10 Skipped Deployments
|
There was a problem hiding this comment.
Pull Request Overview
This PR implements pulse events batching to improve analytics performance by accumulating events and submitting them in batches via navigator.sendBeacon. The implementation automatically submits events when the page becomes hidden or when a size limit is reached.
Key changes:
- Replaces immediate event submission with batching mechanism
- Adds automatic submission on visibility change events
- Implements size-based auto-submission (45KB limit)
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| EventsController.test.ts | Comprehensive test coverage for batching functionality and visibility change handling |
| TypeUtil.ts | Adds PendingEvent type definition for batched events |
| FetchUtil.ts | Adds sendBeacon method for batch submission |
| EventsController.ts | Core implementation of events batching and submission logic |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Description
This PR implements pulse events batching to improve analytics performance by accumulating events and submitting them in batches via navigator.sendBeacon. The implementation automatically submits events when the page becomes hidden or when a size limit is reached.
Key changes:
https://www.notion.so/walletconnect/Reducing-pulse-api-calls-from-AppKit-2613a661771e8050b338c2b9c83d9b54#2613a661771e8050b338c2b9c83d9b54
Type of change
Associated Issues
https://linear.app/reown/issue/APKT-3720/appkit-pulse-events-batching
Checklist