owner stringclasses 14
values | repo stringclasses 14
values | id int64 116k 4.61B | issue_number int32 1 181k | author stringlengths 1 39 | body stringlengths 1 262k | created_at timestamp[us]date 2000-06-06 02:40:44 2026-06-02 20:16:18 | updated_at timestamp[us]date 2000-06-06 02:40:44 2026-06-02 20:22:56 | reactions unknown | author_association stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|
vuejs | core | 1,091,132,514 | 5,679 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | ca327e035eccc1f4ef100bc0cf5173c5ec18897e |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-04-07T06:34:54 | 2022-04-07T06:40:15 | {} | NONE |
vuejs | core | 1,091,400,512 | 5,673 | posva | - regular script should always go before the setup one
- Do not mix composition and options api styles **within the same component** | 2022-04-07T09:16:12 | 2022-04-07T09:16:12 | {} | MEMBER |
vuejs | core | 1,091,463,574 | 5,677 | javastation | as a workaround, add `props: []` in Test.ce.vue | 2022-04-07T09:59:29 | 2022-04-07T09:59:29 | {} | CONTRIBUTOR |
vuejs | core | 1,092,867,665 | 5,687 | hcg1023 | >  I saw this in the documentation and felt like it didn't work when it was precompiled
| 2022-04-08T13:35:09 | 2022-04-08T13:35:09 | {} | CONTRIBUTOR |
vuejs | core | 1,092,844,367 | 5,687 | LinusBorg | Hi @hcg1023
sure, you can work on this. I just assigned myself to remember to leave the suggestions you asked for.
I'm still thinking about this a bit in the context of not just custom elements but the assignment of element properties as a whole. Will get back to you shortly. | 2022-04-08T13:11:25 | 2022-04-08T13:11:25 | {} | MEMBER |
vuejs | core | 1,092,917,009 | 5,690 | LinusBorg | This is not a minimal reproduction. Please boil your problem down to a minimum demo that doesn't involve external dependencies.
If you need help with your specific code and this "SplashStage" thing, maybe ask the community for help first. chat.vuejs.org | 2022-04-08T14:23:40 | 2022-04-08T14:23:40 | {} | MEMBER |
vuejs | core | 1,088,362,839 | 5,663 | richard-slabbert94 | Hi Linus,
I am using Ionic with Vue, so it is likely an issue with Ionic and not Vue.
If you would like to take a look at the issue with Ionic you are welcome to, but I understand it is not your domain.
Here is the link to the issue I lodged on Ionic's Github: https://github.com/ionic-team/ionic-framework/issu... | 2022-04-05T07:34:43 | 2022-04-05T07:34:43 | {} | NONE |
vuejs | core | 1,088,430,310 | 5,575 | qq15725 | test case:
```ts
it('getCurrentScope() stays valid when offed a detached nested EffectScope', () => {
const parentScope = new EffectScope()
parentScope.run(() => {
const currentScope = getCurrentScope()
expect(currentScope).toBeDefined()
const detachedScope = new EffectScope(true)
detac... | 2022-04-05T08:41:16 | 2022-04-05T08:41:16 | {} | NONE |
vuejs | core | 1,090,097,421 | 5,671 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 1dcfd06bd442fe987968a51c9ef106a5984d9956 |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-04-06T10:14:36 | 2022-04-06T10:16:41 | {} | NONE |
vuejs | core | 1,091,132,521 | 5,679 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-next-template-explorer* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | ca327e035eccc1f4ef100bc0cf5173c5ec18897e |
|<span aria-hidden="true">🔍</span> Latest deploy lo... | 2022-04-07T06:34:55 | 2022-04-07T06:35:35 | {} | NONE |
vuejs | core | 1,091,164,618 | 5,676 | LeslieZhang | >
我提供了demo,没回复我
| 2022-04-07T07:17:22 | 2022-04-07T07:17:22 | {} | NONE |
vuejs | core | 1,091,426,593 | 5,681 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-next-template-explorer* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 9f33877d6b3165b5a03f6f3ff8c49057d85de349 |
|<span aria-hidden="true">🔍</span> Latest deploy lo... | 2022-04-07T09:32:31 | 2022-04-07T09:33:13 | {} | NONE |
vuejs | core | 1,091,426,621 | 5,681 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 9f33877d6b3165b5a03f6f3ff8c49057d85de349 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-04-07T09:32:33 | 2022-04-07T09:37:34 | {} | NONE |
vuejs | core | 1,091,447,759 | 5,675 | edison1105 | @posva I tested this one on my PR of #5266, its not a duplicate. | 2022-04-07T09:51:45 | 2022-04-07T09:52:33 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,092,248,539 | 5,525 | jifka | I'll add my name to the list of people affected by this. I am converting a mid-sized app to the composition API and this breaks some core functionality. I'll try the workaround, but it seems shaky. | 2022-04-07T21:57:12 | 2022-04-07T21:57:12 | {} | NONE |
vuejs | core | 1,088,828,284 | 3,652 | mahnouel | I'm no vue internals expert, but I ran into the same error when using suspense, and it seems to be caused by `prevTree.el` being `undefined`. When I place another vue component next to the error throwing one, `prevTree.el` seems to be set, and I get no error anymore. | 2022-04-05T15:01:26 | 2022-04-05T15:01:26 | {} | NONE |
vuejs | core | 1,090,980,689 | 5,675 | edison1105 | use transition-group instead. see [sfc](https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cD5cbmltcG9ydCB7IHJlZiB9IGZyb20gJ3Z1ZSdcblxuY29uc3QgZG9jU3RhdGUgPSByZWYoJ3NhdmVkJylcbjwvc2NyaXB0PlxuXG48dGVtcGxhdGU+XG5cdDxzcGFuIHN0eWxlPVwibWFyZ2luLXJpZ2h0OiAyMHB4XCI+Q2xpY2sgdG8gY3ljbGUgdGhyb3VnaCBzdGF0ZXM6PC9zcGFuPlxuICA8Z... | 2022-04-07T01:20:12 | 2022-04-07T01:20:12 | {} | MEMBER |
vuejs | core | 1,091,407,355 | 5,657 | posva | Not sure if try-catching the rendering of a slot is something that is supposed to be possible | 2022-04-07T09:19:52 | 2022-04-07T09:19:52 | {} | MEMBER |
vuejs | core | 1,091,426,597 | 5,681 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 9f33877d6b3165b5a03f6f3ff8c49057d85de349 |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-04-07T09:32:31 | 2022-04-07T09:34:31 | {} | NONE |
vuejs | core | 1,091,621,899 | 5,678 | AimForNaN | @LinusBorg It doesn't happen with the ES build, and the explanation you give I do not believe applies here. Where in the following code do I commit the error you speak of? https://github.com/truefusion/vigil/blob/main/src/components/Button.vue | 2022-04-07T11:29:50 | 2022-04-07T11:29:50 | {} | NONE |
vuejs | core | 1,091,625,172 | 5,678 | LinusBorg | You're right, i misread this | 2022-04-07T11:33:29 | 2022-04-07T11:33:29 | {} | MEMBER |
vuejs | core | 1,091,634,662 | 5,678 | LinusBorg | I downloaded the repro, ran it locally and saw an error about the umd file not being able to resolve `defineComponent`
As I have no way to access the source for this umd file, and this rather seems like an issue with Vite's dependency optimization, I will close this here and ask you to take this to the Vite project.... | 2022-04-07T11:44:04 | 2022-04-07T11:44:04 | {} | MEMBER |
vuejs | core | 1,092,530,550 | 5,684 | LinusBorg | This will not be part of core libraries, but there are plugins for your build system enabling it.
https://github.com/antfu/unplugin-auto-import | 2022-04-08T07:18:30 | 2022-04-08T07:18:30 | {} | MEMBER |
vuejs | core | 1,088,235,057 | 5,108 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-next-template-explorer* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 60e88fa934787357855dae3f04d3d892a7cd3f18 |
|<span aria-hidden="true">🔍</span> Latest deploy lo... | 2022-04-05T03:41:38 | 2022-04-05T03:42:21 | {} | NONE |
vuejs | core | 1,090,097,409 | 5,671 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vuejs-coverage* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 1dcfd06bd442fe987968a51c9ef106a5984d9956 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https:/... | 2022-04-06T10:14:35 | 2022-04-06T10:17:15 | {} | NONE |
vuejs | core | 1,090,433,648 | 5,525 | Alexandre-cibot | Same issue here, thank you for the workaround waiting for the fix. 👍 | 2022-04-06T15:55:30 | 2022-04-06T15:55:30 | {} | NONE |
vuejs | core | 1,090,970,897 | 5,268 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 2615a4633d098d36417b41dd66b7f91fc2ec6000 |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-04-07T00:57:11 | 2022-04-07T01:15:58 | {} | NONE |
vuejs | core | 1,090,970,889 | 5,268 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 2615a4633d098d36417b41dd66b7f91fc2ec6000 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-04-07T00:57:10 | 2022-04-07T01:21:28 | {} | NONE |
vuejs | core | 1,091,421,686 | 5,662 | posva | Thanks but see https://github.com/vuejs/core/issues/5661#issuecomment-1091420916 | 2022-04-07T09:28:04 | 2022-04-07T09:28:04 | {} | MEMBER |
vuejs | core | 1,091,444,656 | 3,842 | Shinigami92 | As a workaround you could try https://github.com/prettier/plugin-pug and do not set `pugSingleFileComponentIndentation` to true / leave it just to the default.
Then run prettier and your whole codebase is formatted and should be fixed. | 2022-04-07T09:48:51 | 2022-04-07T09:48:51 | {} | CONTRIBUTOR |
vuejs | core | 1,092,336,952 | 5,683 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 5900f1055e2d951b02a1f4c1baf29c8f8ffb834d |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-04-08T00:57:12 | 2022-04-08T00:59:23 | {} | NONE |
vuejs | core | 1,092,692,777 | 5,686 | huzedong2015 | > here is a workaround. see [sfc](https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cD5cbmltcG9ydCBQYXJlbnQgZnJvbSBcIi4vcGFyZW50LnZ1ZVwiO1xuaW1wb3J0IENoaWxkIGZyb20gXCIuL2NoaWxkLnZ1ZVwiO1xuXG4gIGltcG9ydCB7IHByb3ZpZGUscmVmIH0gZnJvbSAndnVlJ1xuICBjb25zdCBlbCA9IHJlZihudWxsKVxuICBwcm92aWRlKCdjaGlsZCcsZWwpXG48L3NjcmlwdD5... | 2022-04-08T10:01:58 | 2022-04-08T10:01:58 | {} | NONE |
vuejs | core | 1,088,409,658 | 5,575 | qq15725 | @posva
Vue SFC Playground: [3.2.31](https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cD5cblx0aW1wb3J0IHsgZWZmZWN0U2NvcGUsIG9uU2NvcGVEaXNwb3NlIH0gZnJvbSAndnVlJ1xuICBlZmZlY3RTY29wZSh0cnVlKS5vZmYoKVxuICBvblNjb3BlRGlzcG9zZSgoKSA9PiB1bmRlZmluZWQpXG48L3NjcmlwdD5cbiIsImltcG9ydC1tYXAuanNvbiI6IntcbiAgXCJpbXBvcnRzXCI6I... | 2022-04-05T08:20:16 | 2022-04-05T08:20:16 | {} | NONE |
vuejs | core | 1,089,711,726 | 3,842 | dev-itsheng | > Any update on this?
I'm sorry it took so long to reply, it's been a year before I know it, and there is still no progress on this PR.
The following modifications may be made next:
1. Add Vite support (add PR for `@vitejs/plugin-vue`)
2. Added support for Volar (now using indentation will still report an err... | 2022-04-06T02:55:20 | 2022-04-06T02:55:20 | {} | CONTRIBUTOR |
vuejs | core | 1,091,645,468 | 5,678 | AimForNaN | @LinusBorg According to the error on my machine, the culprit is the following line: https://github.com/vuejs/core/blob/e603fd258c1576082625943ac8b34407f5847665/packages/runtime-core/src/apiSetupHelpers.ts#L186
`getCurrentInstance()` is returning null. The issue is in no way related to `defineComponent`. It just so h... | 2022-04-07T11:56:41 | 2022-04-07T11:56:41 | {} | NONE |
vuejs | core | 1,092,846,945 | 5,689 | LinusBorg | This would require an extensive RFC, for which you can start a discussion here:
https://github.com/vuejs/rfcs
| 2022-04-08T13:14:10 | 2022-04-08T13:14:10 | {} | MEMBER |
vuejs | core | 1,093,014,815 | 5,679 | LinusBorg | > the custom element I made was defined using the native defineCustomElement
It seems I wasn't reading your example carefully enough, my apologies. Coincidentally, my point is still something I need to address in this PR, so still: Thanks for the (involuntary) pointer.
> Here's another example that illustrates th... | 2022-04-08T15:37:30 | 2022-04-08T15:37:54 | {} | MEMBER |
vuejs | core | 1,088,448,052 | 5,669 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | a901c60a1ee61fae820e78e76d04a6f545090345 |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-04-05T08:59:40 | 2022-04-05T09:01:43 | {} | NONE |
vuejs | core | 1,196,575,249 | 2,291 | Akryum | Looks like Vue 2.7 has [the same issue](https://github.com/vuejs/vue/issues/12703) | 2022-07-27T10:54:33 | 2022-07-27T10:54:33 | {} | MEMBER |
vuejs | core | 1,198,074,940 | 6,320 | linshuohao | > Any updates about approval?
not yet | 2022-07-28T12:27:54 | 2022-07-28T12:27:54 | {
"confused": 1
} | CONTRIBUTOR |
vuejs | core | 1,200,806,934 | 6,389 | jacekkarczmarczyk | Thanks for the response, I indeed messed provides, here's updated version for [2.7](https://codepen.io/jkarczm/pen/WNzdKJy?editors=0011) and [3.2](https://codepen.io/jkarczm/pen/abYEjEo?editors=0011) (and using `this.$watch`: [2.7](https://codepen.io/jkarczm/pen/MWVrPjm?editors=0011) and [3.2](https://codepen.io/jkarcz... | 2022-08-01T07:14:06 | 2022-08-01T09:26:24 | {} | CONTRIBUTOR |
vuejs | core | 1,201,927,880 | 5,165 | feiyayshx | >
同样的vue@3.2.37版本,同样的报错信息,使用vite构建,热更新无法使用 | 2022-08-02T02:01:34 | 2022-08-02T02:01:34 | {} | NONE |
vuejs | core | 1,202,655,919 | 5,584 | dulshan300 | ` v-model="modelValue"` works with DEV
` v-model="props.modelValue"` works with PROD
any solution yet ??
I was able to make this work with the following approach with `ref`
```
const props = defineProps({
modelValue: {
type: String,
required: true
}
const emit = d... | 2022-08-02T14:09:32 | 2022-08-02T14:22:15 | {
"+1": 3,
"rocket": 1
} | NONE |
vuejs | core | 1,200,513,004 | 6,389 | lidlanca | in case this is not bug , you can use the watch `flush:post` option
[playground - flush:post](https://sfc.vuejs.org/#eNp9Uj1vgzAQ/SsnL4BkIF0ppKo6de7qBcjREAXbsg0dkP97zwFRlFTZ7uP5nd+9m9m71tk0IitYaVvTawcW3aiPQvaDVsbBDNqoqT8hB4MdhzN46IwaIKJn0euG+xqbD0WhROlWQJbvi2FMwAMI2SppCaUUVIE1Tm710FmHxRE1Ix4goUd/+pQOzVRf4ziB6ggxdT... | 2022-07-31T22:25:48 | 2022-07-31T22:25:48 | {} | CONTRIBUTOR |
vuejs | core | 1,200,588,160 | 6,381 | AlphaYoung111 | @cuixiaorui

1. the demo won 't warn in the prod mode,but the method `exposeMethd` not be called because the `componet` is undefined
2. the reason componet is undefined because `itemRefs` don' t provide t... | 2022-08-01T01:46:48 | 2022-08-01T01:46:48 | {} | NONE |
vuejs | core | 1,203,729,801 | 6,403 | mwargan | Oops - closing: https://github.com/vuejs/core/issues/6313, https://github.com/vuejs/core/pull/6321 | 2022-08-03T09:49:30 | 2022-08-03T09:49:30 | {} | NONE |
vuejs | core | 1,197,643,797 | 4,294 | alsotang | When wrapping a third party component, I want to expose its props.
```ts
import { Modal } from "@arco-design/web-vue";
// does not work
// defineProps<InstanceType<typeof Modal>["$props"]>();
// works
export type ModalProps = InstanceType<typeof Modal>["$props"];
export interface Props extends ModalProps... | 2022-07-28T04:26:23 | 2022-07-28T04:26:23 | {} | NONE |
vuejs | core | 1,200,641,911 | 6,383 | edison1105 | duplicate of #5830 | 2022-08-01T03:14:03 | 2022-08-01T03:14:03 | {} | MEMBER |
vuejs | core | 1,201,896,636 | 6,370 | rationalthinker1 | I tried that too. I get another error. `Uncaught (in promise) TypeError: Cannot read properties of null (reading '_vnode')`
```javascript
app.directive('permission-show', {
mounted(el, binding, _vnode) {
const permissionName = binding.value;
const defaultValue = binding.value || false;
const per... | 2022-08-02T00:58:49 | 2022-08-02T00:59:37 | {} | NONE |
vuejs | core | 1,203,549,646 | 6,375 | a145789 | 你初始定义的是 `reactive({})`, 空对象根本 `...toRefs(state)` 不出来的 `selectedItem `, 页面上是 `undefined` ,子组件肯定不会响应渲染 | 2022-08-03T06:44:57 | 2022-08-03T06:44:57 | {} | NONE |
vuejs | core | 1,204,805,630 | 6,400 | Asylian21 | >
It should throw an error, that props have been already declerated for this component. Ok but we are dealing with issue tat some components may have same props. Just want to avoid code duplicity. | 2022-08-04T06:13:16 | 2022-08-04T06:13:16 | {} | NONE |
vuejs | core | 1,204,912,317 | 6,405 | a145789 | 可以参考 [这个](https://github.com/vuejs/core/issues/5221), 3.2.25 v-for 中的 ref 和 vue2 的表现一样了
新文档里也有[提到](https://staging-cn.vuejs.org/guide/essentials/template-refs.html#refs-inside-v-for)
> 需要 v3.2.25 及以上版本 | 2022-08-04T08:08:06 | 2022-08-04T08:08:06 | {} | NONE |
vuejs | core | 1,196,214,662 | 6,364 | btea | @edison1105 please review. | 2022-07-27T03:08:02 | 2022-07-27T03:08:02 | {} | CONTRIBUTOR |
vuejs | core | 1,196,435,356 | 6,366 | AlanSean | script setup 的name命名是根据文件名来的
MyComponent.vue -> 组件 name : MyComponent | 2022-07-27T08:44:04 | 2022-07-27T08:44:04 | {} | NONE |
vuejs | core | 1,196,896,388 | 6,314 | LinusBorg | `InjectionKey<Function>` would give you an injection whose value is `Function`.
I dont see what problem your proposal is meant to solve. | 2022-07-27T15:17:43 | 2022-07-27T15:17:43 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,197,298,737 | 4,662 | murphybob | Thanks @soultice I tried implementing your suggestion and it does indeed work 🙏 , however in doing so the HMR stopped working for styles in sub-components which is certainly frustrating! The content of subcomponents is correctly hot reloaded, but the styles require a page refresh to update. HMR works only on the roo... | 2022-07-27T19:54:10 | 2022-07-27T19:54:10 | {} | NONE |
vuejs | core | 1,200,978,708 | 6,271 | a145789 | 感觉挺有意思的,翻了翻源码,问题应该出在 [这里](https://github.com/vuejs/core/blob/a95554d35c65e5bfd0bf9d1c5b908ae789345a6d/packages/runtime-core/src/renderer.ts#L628)
看样子是有意为之要重用之前的 `el`,具体原因不知。
开发环境和线上环境表现不同是因为开发环境克隆 `dom` 不能 `hmr`。
不过自己操作 `dom` 的行为严格来说就不应该归 `vue` 管了,在组件卸载时可以自己手动卸载
```ts
onBeforeUnmount(() => {
(document.q... | 2022-08-01T09:54:23 | 2022-08-01T09:54:23 | {
"+1": 2
} | NONE |
vuejs | core | 1,205,525,658 | 5,705 | ejg | Yes. I can still reproduce on iOS 15.6/Chrome v103 using the vue reproduction link above, the codepen https://codepen.io/ejg/pen/QWaVwvm , and my website. | 2022-08-04T16:58:02 | 2022-08-04T16:58:02 | {} | NONE |
vuejs | core | 1,197,611,750 | 6,370 | pasBone | maybe like this, i'm not sure too.
```ts
imoprt { render } from "vue"
render(null, el);
``` | 2022-07-28T03:26:47 | 2022-07-28T03:26:47 | {} | NONE |
vuejs | core | 1,198,753,721 | 6,366 | Tyh2001 | 那样可以实现递归组件吗?
@AlanSean | 2022-07-29T00:32:12 | 2022-07-29T00:32:12 | {} | NONE |
vuejs | core | 1,198,849,779 | 6,366 | AlanSean | > 那样可以实现递归组件吗? @AlanSean
### [script steup 文档 -> 递归组件](https://staging-cn.vuejs.org/api/sfc-script-setup.html#recursive-components)
建议认真的再复习一下[单文件组件 <script setup>文档](https://staging-cn.vuejs.org/api/sfc-script-setup.html#script-setup)
| 2022-07-29T03:46:41 | 2022-07-29T03:46:41 | {} | NONE |
vuejs | core | 1,202,849,137 | 5,401 | aztalbot | @LinusBorg I’ve seen this become a point of friction in migrating from vue2 to vue3 if the app uses a lot of custom elements - you end up with either less idiomatic Vue code throughout by using custom directives for very common event handling, or waiting on publishers of the web components you use to update their libra... | 2022-08-02T15:38:25 | 2022-08-02T15:38:25 | {} | CONTRIBUTOR |
vuejs | core | 1,204,321,077 | 6,400 | sxzz | IMHO, it's not a good idea. If we want to support this feature, then Vue compiler should check every function (including nested functions). It should read and parse a lot of files (many files in `node_modules`). Even if we skip `node_modules`, then Vue also needs to analyze many conditions and cases. For example:
``... | 2022-08-03T18:21:41 | 2022-08-03T18:22:00 | {
"+1": 2
} | MEMBER |
vuejs | core | 1,204,534,444 | 4,294 | Dschungelabenteuer | Just for the record, [Evan You told it would be addressed in Vue 3.3](https://youtu.be/3QPp_DlcZpM?t=888).
* The video states they would start working on it after the 2.7 stable release which happened on [July 1, 2022](https://blog.vuejs.org/posts/vue-2-7-naruto.html).
* Vue 3.3 ETA seems to be Q3 2022, let us be pa... | 2022-08-03T22:07:28 | 2022-08-03T22:07:28 | {
"+1": 36,
"eyes": 10,
"heart": 15,
"hooray": 25,
"laugh": 5,
"rocket": 7
} | CONTRIBUTOR |
vuejs | core | 1,204,921,094 | 6,405 | chenyurou | > 可以参考 [这个](https://github.com/vuejs/core/issues/5221), 3.2.25 v-for 中的 ref 和 vue2 的表现一样了 新文档里也有[提到](https://staging-cn.vuejs.org/guide/essentials/template-refs.html#refs-inside-v-for)
>
> > 需要 v3.2.25 及以上版本
感谢回复! | 2022-08-04T08:16:29 | 2022-08-04T08:16:29 | {} | NONE |
vuejs | core | 1,204,929,926 | 6,405 | Justineo | See @a145789's [comment](https://github.com/vuejs/core/issues/6405#issuecomment-1204912317). | 2022-08-04T08:24:17 | 2022-08-04T08:24:17 | {} | MEMBER |
vuejs | core | 1,206,043,324 | 5,584 | evanerwee01 | I have exactly this problem. I'm new to vue.js and spent nearly 20 hours to found the issue mentioned. I still cant fix the problem. SPent 2 hours reading here, over and over again, but to luck. Anyone that can explain a bit more I will greatly apprechiate. I'm a programmer and coding for many years. Just not a JAVA /... | 2022-08-05T04:58:15 | 2022-08-05T04:58:15 | {} | NONE |
vuejs | core | 1,196,179,983 | 6,338 | jackZmym | >
这个为true的话 副作用函数执行完 shouldTrack好像还是true. 收集依赖track函数时候 if (shouldTrack && activeEffect)好像没意义 | 2022-07-27T01:56:15 | 2022-07-27T01:56:15 | {} | NONE |
vuejs | core | 1,196,894,877 | 6,314 | LinusBorg | Why would you want K to be string? | 2022-07-27T15:16:31 | 2022-07-27T15:16:31 | {} | MEMBER |
vuejs | core | 1,198,668,577 | 6,367 | lidlanca | this is a bug 🐛
the compiler does not detect `果物` as an identifier of the v-for scope
```html
<li v-for="果物 in fluits" :key="果物">
<button @click="onClick(果物)">{{ 果物 }}</button>
</li>
```
and caches the handler
```js
onClick: _cache[0] || (_cache[0] = $event => (onClick(果物)))
```... | 2022-07-28T21:52:49 | 2022-07-28T21:52:49 | {} | CONTRIBUTOR |
vuejs | core | 1,199,080,879 | 6,381 | cuixiaorui | The use of the way you don't
Ref support array api but do not support the api of objects
you can see the document -> [api document](https://vuejs.org/guide/essentials/template-refs.html#refs-inside-v-for)
I implemented a demo , you can see the [demo](https://sfc.vuejs.org/#eNp9U01v2zAM/SuCL3aAREY/Tl4SbCt22GHDs... | 2022-07-29T09:44:28 | 2022-07-29T09:48:58 | {} | CONTRIBUTOR |
vuejs | core | 1,199,213,054 | 6,381 | wellrus | @cuixiaorui
it must be
`const getComponentByName = (name)=> itemRefs.value.find((c)=> c.name === name)`
| 2022-07-29T12:21:05 | 2022-07-29T12:21:23 | {} | NONE |
vuejs | core | 1,199,382,579 | 4,662 | soultice | @murphybob I've just released a vite plugin that works around this bug, HMR included. [vite-plugin-vue-hoist-ce-styles](https://www.npmjs.com/package/vite-plugin-vue-hoist-ce-styles)
It's in an early stage so I'd really appreciate any raised issue / support with testing | 2022-07-29T14:24:01 | 2022-07-29T14:24:01 | {
"hooray": 6
} | NONE |
vuejs | core | 1,203,255,388 | 6,391 | trulyprivate | Replicated this behavior as well for safari mobile
https://github.com/vuejs/core/issues/6391#issue-1324834994 | 2022-08-02T21:59:52 | 2022-08-02T21:59:52 | {} | NONE |
vuejs | core | 1,203,538,651 | 6,392 | Asylian21 | I see the point for a now you can use https://vueuse.org/core/usevmodel/#usevmodel | 2022-08-03T06:29:42 | 2022-08-03T06:29:42 | {} | NONE |
vuejs | core | 1,206,576,499 | 6,038 | ghost | maybe you can do it use `KeepAlive`.
If use router controll it, record route:
```jsx
// record tabs
const pages = reactive([]);
// when route changed, record it
router.afterEach((to) => {
const key = getKeyFromRoute(to);
if (pages.find((tab) => tab.key === key)) {
return;
}
pages.push({
... | 2022-08-05T15:20:37 | 2022-08-05T15:20:37 | {} | NONE |
vuejs | core | 1,198,019,217 | 6,358 | hubvue | @lidlanca
I don't have such a usage scenario, I was struggling to understand the `reactivity` source code and when I saw the type signature of the `reactive()`, I realized that there was no associated processing logic.
```ts
export type UnwrapNestedRefs<T> = T extends Ref ? T : UnwrapRefSimple<T>
export function r... | 2022-07-28T11:30:46 | 2022-07-28T11:30:46 | {} | NONE |
vuejs | core | 1,200,459,440 | 5,767 | aronsuarez | Same problem with vue 3 + vite + primevue | 2022-07-31T16:42:06 | 2022-07-31T16:42:06 | {} | NONE |
vuejs | core | 1,205,150,973 | 6,397 | edison1105 | 在自己的分支上搞。不要提PR啊。 | 2022-08-04T11:51:21 | 2022-08-04T11:51:21 | {} | MEMBER |
vuejs | core | 1,205,717,085 | 6,407 | VividLemon | ```
All props are optional by default, unless required: true is specified.
An absent optional prop other than Boolean will have undefined value.
The Boolean absent props will be cast to false. You should set a default value for it in order to get desired behavior.
```
Apparently it's in the docs, but regardles... | 2022-08-04T20:07:59 | 2022-08-04T20:07:59 | {} | NONE |
vuejs | core | 1,196,764,620 | 3,842 | greabock | Cant migrate my project too. Any update on this? | 2022-07-27T13:28:56 | 2022-07-27T13:28:56 | {} | NONE |
vuejs | core | 1,204,603,384 | 6,392 | Blackman99 | > I don't think the Vue compiler need to provide such an API. The custom macros need to modify many places of codes. A general way to process and transform macros is to wrote a bundler plugin, parse and manipulate AST yourself.
>
> For example, https://github.com/sxzz/unplugin-vue-macros. I implemented `defineModel`... | 2022-08-04T00:07:28 | 2022-08-04T02:14:54 | {} | NONE |
vuejs | core | 1,205,175,336 | 5,767 | cnguyen-de | Have the same issue, currently doing a migration vue 2 -> 3, application is in compat mode. We have vite 3 + vue 3, polling also doesn't work. | 2022-08-04T12:15:49 | 2022-08-04T12:22:11 | {} | NONE |
vuejs | core | 1,206,307,394 | 6,366 | posva | Duplicate of https://github.com/vuejs/rfcs/discussions/430#discussioncomment-2333745 | 2022-08-05T10:43:58 | 2022-08-05T10:43:58 | {} | MEMBER |
vuejs | core | 1,197,809,249 | 5,657 | HarisSpahija | If anyone is still dealing with this. We worked around the error by replacing most of our `v-if` to `v-show`. | 2022-07-28T08:08:49 | 2022-07-28T08:08:49 | {
"+1": 11
} | NONE |
vuejs | core | 1,199,378,633 | 2,855 | DariaTsypkina | I've also met with this issue building project for production. Workaround helped. | 2022-07-29T14:22:23 | 2022-07-29T14:22:23 | {} | NONE |
vuejs | core | 1,200,777,017 | 6,389 | LinusBorg | The difference between your initial example and the options API one with3.2.27 is not in the watcher behavior. It's in the way you use `provide`. (However, yes there is a difference between Vue 2 and 3 worth exploring).
### Concerning 3.2
In your options API example, doing this will not trigger the watcher becaus... | 2022-08-01T06:39:41 | 2022-08-01T06:39:41 | {} | MEMBER |
vuejs | core | 1,203,579,444 | 6,392 | Asylian21 | > > I see the point for a now you can use https://vueuse.org/core/usevmodel/#usevmodel
>
> I know this function. Even with this I still need to repeatedly declare `modelValue` prop and `update:modelValue` with `defineProps` and `defineEmits`
yes, it's quite annoying and it's also quite serious to me :D . The ab... | 2022-08-03T07:19:42 | 2022-08-03T07:20:55 | {
"+1": 4,
"heart": 1
} | NONE |
vuejs | core | 1,204,792,339 | 6,392 | sxzz | I mean if you implement a macro, you need to transform a lot of codes, not Vue's code will change a lot. Furthermore, the proposal API you mentioned above is not universal enough. Even if this API is implemented, `unplugin-vue-macros` is unable to implement the feature by using it. You can read [my code](https://github... | 2022-08-04T05:52:57 | 2022-08-04T05:52:57 | {} | MEMBER |
vuejs | core | 1,206,268,209 | 6,222 | paul-xia | saaaaaaaaaaaaaaaaaaaame error | 2022-08-05T09:56:08 | 2022-08-05T09:56:21 | {} | NONE |
vuejs | core | 1,197,650,511 | 6,358 | lidlanca | @hubvue
it will probably be best to avoid passing a ref directly to `reactive(ref())`
I don't see a good reason for this.
do you have a practical use case, where that was necessary to do?
additionally `watchEffect` might be useful for this case
https://sfc.vuejs.org/#eNp9UEFqwzAQ/Mqiix2wJdKjcQI99NwP6O... | 2022-07-28T04:37:33 | 2022-07-28T04:39:49 | {} | CONTRIBUTOR |
vuejs | core | 1,198,024,360 | 6,375 | hubvue | Can you provide an example on [playground](https://sfc.vuejs.org/)? | 2022-07-28T11:36:25 | 2022-07-28T11:36:25 | {} | NONE |
vuejs | core | 1,199,702,209 | 5,695 | unshame | @yyx990803 any chance to get this merged? | 2022-07-29T16:37:28 | 2022-07-29T16:37:28 | {} | NONE |
vuejs | core | 1,201,910,238 | 6,271 | Steve245270533 | 
可以在配置里手动指定是否需要静态提升优化 | 2022-08-02T01:24:43 | 2022-08-02T01:24:43 | {} | NONE |
vuejs | core | 1,201,984,485 | 6,356 | kingcw | it's not problem of Vue, but 3rd party library. I couldn't remember how I fixed it, but you can start debugging from minimal Vue project then add your 3rd party libraries 1 by 1 to narrow down the library that caused problem. | 2022-08-02T03:51:59 | 2022-08-02T03:51:59 | {} | NONE |
vuejs | core | 1,203,671,182 | 6,392 | Blackman99 | > In my opinion defining built-in macros outside the SFC file also means that built-in macros can be defined repeatedly, otherwise you won't be able to define other parameters and events.
That's theoretically possible. The implemention should solve this by combining the outside macros and the those inside SFC files.... | 2022-08-03T08:53:44 | 2022-08-03T08:54:26 | {} | NONE |
vuejs | core | 1,204,013,684 | 6,356 | kingcw | I can't remember. It was pretty small fix. If you can provide a mini repo that produce the bug, I can take a look. | 2022-08-03T14:19:24 | 2022-08-03T14:19:24 | {} | NONE |
vuejs | core | 1,205,916,427 | 6,397 | GongMingCai | 不好意思,拉过去的分支后面有变更 | 2022-08-05T00:42:28 | 2022-08-05T00:42:28 | {} | NONE |
vuejs | core | 1,204,801,149 | 6,392 | Blackman99 | You're misunderstanding what I'm trying to describe.
`defineModel` is just one example. `defineOptions` too. These are just some fixed hard coding macros.
What I want is **a way to define any macros developers may want**.
It is precisely because the complexity of implementing custom macros is currently too high. ... | 2022-08-04T06:07:16 | 2022-08-04T06:15:44 | {
"+1": 1,
"confused": 1,
"eyes": 2,
"heart": 3
} | NONE |
vuejs | core | 1,206,084,057 | 5,584 | dulshan300 | @evanerwee01 as per the Vue docs, toRef required reactive source since defineProps returns a read-only Object
[Vuejs#toRef](https://vuejs.org/api/reactivity-utilities.html#toref)
but you can use
```
const accessKey = ref(props.accessKey)
const secretKey = ref(props.secretKey)
```
| 2022-08-05T06:16:46 | 2022-08-05T06:16:46 | {} | NONE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.