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

reactComponentAnnotation. I use an unintended value for a prop. #492

Open
jin-Pro opened this issue Feb 26, 2024 · 1 comment
Open

reactComponentAnnotation. I use an unintended value for a prop. #492

jin-Pro opened this issue Feb 26, 2024 · 1 comment

Comments

@jin-Pro
Copy link

jin-Pro commented Feb 26, 2024

Problem Statement

Hello, I am a software developer using @sentry/vite-plugin.

I am using reactComponentAnnotation in sentryVitePlugin.

I was thinking of injecting the corresponding value into html's attribute through babel.

However, I saw data-sentry-component and data-sentry-source-file in react component prop,
Because of this value I faced error.

I think this function interferes with the spread operation, which is a basic function of javascript.
Because of this, I argue that this feature should be changed.

Solution Brainstorm

I want. In order to inject values ​​through html attribute, avoid polluting JavaScript code.

@Lms24
Copy link
Member

Lms24 commented Feb 26, 2024

Hi @jin-Pro, thanks for writing in!

If you could provide a minimal reproducible example for the issue we'd greatly appreciate it! Also please feel free to propose a concrete solution.

Gonna tag @0Calories to take a look please, thx!

@AbhiPrasad AbhiPrasad transferred this issue from getsentry/sentry-javascript Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants