-
-
Notifications
You must be signed in to change notification settings - Fork 223
Only register MauiSessionReplayMaskControlsOfTypeBinder when relevant #4445
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
Conversation
@Flash0ver it's lucky I took another look at this on the back of our chat yesterday. I had things completely backwards. See updated description in this PR and updated code. It's maybe worth considering whether we want to offer the
|
{ | ||
services.AddSingleton<IMauiElementEventBinder, MauiCustomSessionReplayMaskBinder>(); | ||
} | ||
#endif |
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.
Is that untrue because
- the
BindableProperty
does set the tags for native (""sentry-mask""
and"sentry-unmask"
) already - where the
IMauiElementEventBinder
must now do the same for all configuredMaskedControls
/UnmaskedControls
?
(just clarifying if I'm understanding it)
Resolves #4439:
Summary
In applications with complex user interfaces consisting of hundreds of controls on any individual page, the overhead of adding and removing events hooks to all of the
VisualElement.Loaded
events can cause significant performance delays.We use this event hook to set the Masking behaviour for visual controls of or descending from a particular type (controlled via
NativeSentryReplayOptions.MaskControlsOfType<T>()
andNativeSentryReplayOptions.UnmaskControlsOfType<T>()
).This PR:
MaskControlsOfType
orUnmaskControlsOfType
options are used