-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: do not send repeated snapshots #126
Conversation
lib/src/posthog_widget_widget.dart
Outdated
return; | ||
} | ||
|
||
if (const PHListEquality().equals(pngBytes, _lastSnapshot)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hard to tell the performance impact of that, can move to a background thread on the native side if needed
case 'sendMetaEvent': | ||
// not supported on Web | ||
// Flutter Web uses the JS SDK for Session replay | ||
break; | ||
case 'sendFullSnapshot': | ||
// not supported on Web | ||
// Flutter Web uses the JS SDK for Session replay | ||
break; | ||
case 'isSessionReplayActive': | ||
// not supported on Web | ||
// Flutter Web uses the JS SDK for Session replay | ||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flyby fix, missed it here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
💡 Motivation and Context
do not send repeated snapshots if nothing changed
💚 How did you test it?
running sample and being sure that the screen should or not match the last snapshot
📝 Checklist