-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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: fix vue3 render warning loop #6010
feat: fix vue3 render warning loop #6010
Conversation
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.
Hi @Rockergmail and thanks for opening up this PR! Would be great to fix this long-standing bug.
I have a couple of questions. I'm not a Vue expert so it'd be great if you could tell me how the fix you're proposing works and why we need to modify the args that way. I'm not yet sure if we can fix this in the proposed way but I'll take it to the team.
EDIT: Seeing the CI results, our linter is not yet happy. Running yarn lint
should tell you what's wrong
@Lms24 It seens I have explained why . And you can see the debug process here: #5916 let's take the demo for example: https://stackblitz.com/edit/vue-g6usgy?file=src%2Fmain.js Or can you suggest me how can I explain to you in which way ? the vue3 render process ? vue3 render Mycomp.vue, when it comes to so when we try to get the value of
component has a prop called so, when we reach Because As to why we need to modify the args that way:
|
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.
Thanks for explaining. Sat down with the team and we think this is good to go. It's too bad that we can't more securely check for a Proxy but it seems like this really isn't possible and therefore I think your solution makes sense.
Tbh, we're overall not too happy with this small hack being in the framework-agnostic breadcrumbs integration. However, creating a Vue-specific integration (that's extending this integration) just for this one bug would also be a lot of work.
For future readers: This might however very well become an option in case we need to do more Vue-specific stuff in this integration.
It seems like our E2E tests are failing because our Auth token was not set for PRs coming from forks. Any chance that you created this branch before we merged #5986? Would you mind rebasing this to the current master
?
lgmt Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
sorry, i am not sure if i am clear what you mean.
|
Yes, I mean rebase your branch to |
Closing this in Favour of #6014 |
Before submitting a pull request, please take a look at our
Contributing guidelines and verify:
yarn lint
) & (yarn test
).fix issues:
#5916
#4743
why this happens:
ref
in the second arg ofh
method, to support this feature: https://cn.vuejs.org/guide/essentials/template-refs.htmlconsole.warn
to print error stacks.console
, and add the message tobreadcrumb
withsafeJoin
safeJoin
will transfer variables to string. The ref variable is a proxied object viaProxy
. so, when calledString(value)
, will trigger the getter of Proxy, and got undefined, so again vue3 will callconsole.warn
to print error stackssolutions: