Skip to content

Conversation

@jamescrosswell
Copy link
Collaborator

@jamescrosswell jamescrosswell marked this pull request as ready for review June 5, 2025 04:02
@jamescrosswell jamescrosswell requested a review from Flash0ver as a code owner June 5, 2025 04:02
@jamescrosswell jamescrosswell requested a review from Flash0ver June 11, 2025 10:20
@jamescrosswell jamescrosswell requested a review from Flash0ver June 16, 2025 23:57
public BreadcrumbEvent(
object? sender,
string eventName,
params IEnumerable<(string key, string value)> extraData) : this(sender, eventName, extraData.Select(
Copy link
Member

@Flash0ver Flash0ver Jun 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

final comment: deferred execution

The Select assigned to ExtraData will have deferred execution.
Is this expected / intended?

On the other hand, since we accept IEnumerable in the .ctors, the user could pass IEnumerables with deferred execution anyway.

On second thought ... I believe this is great as it is.
Also considering we're enumerating through it only a single time, so materializing the IEnumerable beforehand would actually be slightly slower and allocate more memory.

@jamescrosswell jamescrosswell merged commit 33665ed into main Jun 18, 2025
35 checks passed
@jamescrosswell jamescrosswell deleted the breadcrumbevent-extradata branch June 18, 2025 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BreadcrumbEvent.ExtraData not captured in MauiEventsBinder

5 participants