Skip to content

Conversation

mario-launchdarkly
Copy link
Contributor

No description provided.

cursor[bot]

This comment was marked as outdated.

severity: .info,
attributes: [
"screen.name": .string(self.viewName),
].merging(logAttributes) { _, inbound in inbound }
Copy link

Choose a reason for hiding this comment

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

Bug: Screen Name Mismatch in View Modifier

The onAppear and onDisappear blocks in ViewNameViewModifier use a merging strategy that allows user-provided attributes to override the screen.name attribute. This can lead to the logged screen name not matching the viewName parameter, potentially causing confusion.

Fix in Cursor Fix in Web

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.

2 participants