feat: fix vue3 render warning loop#6010
feat: fix vue3 render warning loop#6010Rockergmail wants to merge 3 commits intogetsentry:masterfrom
Conversation
There was a problem hiding this comment.
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:
|
Lms24
left a comment
There was a problem hiding this comment.
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:
refin the second arg ofhmethod, to support this feature: https://cn.vuejs.org/guide/essentials/template-refs.htmlconsole.warnto print error stacks.console, and add the message tobreadcrumbwithsafeJoinsafeJoinwill 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.warnto print error stackssolutions: