Skip to content
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

feat: Log the component tree to all touch events, not just ones without a component with displayName. #952

Merged
merged 4 commits into from
Jul 6, 2020

Conversation

jennmueng
Copy link
Member

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Currently we only log the whole touch component tree when we couldn't find a component with a displayName set. This changes it so the component tree is logged every time:
Screen Shot 2020-07-06 at 2 59 03 PM

💡 Motivation and Context

This was done because we can't be sure which components have a displayName set. Any component from any library can have it set, looking at an example issue here: #950 where it looks like the user is using an Svg library where they have a component with the displayName set to Svg and it doesn't log the user's component. It would be useful to just log the whole tree in the case that the touch event runs into a component with a displayName not set by the user.

💚 How did you test it?

Tested on sample app and verified on sentry.io dashboard.

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • All tests passing

🔮 Next steps

Copy link
Member

@HazAT HazAT left a comment

Choose a reason for hiding this comment

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

Changelog :)

otherwise LGTM

@jennmueng jennmueng merged commit 45bcd19 into master Jul 6, 2020
@jennmueng jennmueng deleted the feat/log-tree-branch branch July 6, 2020 10:09
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