-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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(compiler-core): support Error in template #7018
Conversation
In case there will be Error global, shouldn't we also be able to use This might be more helpful than Error in debugging. <template>
<va-tree-view :nodes="nodes">
<template #content="node">
{{ console.log(node) }}
</template>
</va-tree-view>
</template> |
console was requested in the past but it was decided not to be added. I can’t find the issue now. Maybe it was in vue repo and not in core? |
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.
I looked at the linked issue and still I don't understand the use-case for this. We cannot throw errors in template as throw new Error()
is a statement and we cannot use statements in template (except for v-on).
The only use case would be passing Whatever direction this take, at least we will have a reference issue for future feature requests |
Related #9069 |
af2ee99
to
0bf8636
Compare
Size ReportBundles
Usages
|
29d3879
to
a7a2795
Compare
a7a2795
to
ba04502
Compare
@posva It looks like this PR has been mangled by changes elsewhere. The file |
cca5113
to
d14821a
Compare
@skirtles-code It should be good now! |
d14821a
to
d26e4f5
Compare
Related to #7015