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,195,922,968 | 6,363 | mkierdev | Thanks @LinusBorg for quick response. I understand passing by reference. Therefore I have updated reproduction. Using plain JS <s> won't cause update in jsProducts array. </s>
TLDR it won't cause template update, but array will still be updated. The lack of template update caused wrong assumptions.
```
import { ref... | 2022-07-26T20:02:29 | 2022-07-26T20:20:13 | {} | NONE |
vuejs | core | 1,196,159,993 | 6,349 | edison1105 | https://github.com/vuejs/core/blob/a95554d35c65e5bfd0bf9d1c5b908ae789345a6d/packages/reactivity-transform/src/reactivityTransform.ts#L29
easy to fix. PR welcome. | 2022-07-27T01:12:52 | 2022-07-27T01:12:52 | {} | MEMBER |
vuejs | core | 1,188,485,535 | 4,707 | davidboom95 | Same here. The error is random. It happens often. I have absolutely no way of knowing where the error is happening. It propagates back to all components in the tree | 2022-07-19T01:07:39 | 2022-07-19T01:07:39 | {
"+1": 1
} | NONE |
vuejs | core | 1,189,124,639 | 6,298 | posva | Could be an issue with the vite plugin as it doesn't happen [in the SFC](https://sfc.vuejs.org/#eNqtUstugzAQ/BXLF1IpgMKREqSq50o99eQLhSUlMrZlm1QR4t+7Ng+lpK2iqDe8M8zO7G5Pn5SKTh3QlGYWWsULCzkThGSl2oUIEA31nlF8MZpn8VSdKYmnpMC/UXwVKVl8IYlPU+pGWcILcUC+NYwSA7ZTiDatktqS3rUjA6m1bEmAKsECofwb9hqRKH6Wrdo558HjBSVZU5KZUkphvAghe9cks2cF... | 2022-07-19T14:27:43 | 2022-07-19T14:27:43 | {} | MEMBER |
vuejs | core | 1,193,754,889 | 5,785 | skirtles-code | Related docs PR: https://github.com/vuejs/docs/pull/1853 | 2022-07-25T08:38:37 | 2022-07-25T08:38:37 | {} | CONTRIBUTOR |
vuejs | core | 1,188,596,574 | 6,248 | Aniruddh-J | Any update on this? We have a huge project that utilizes both Options API and Composition API. If a solution is likely not to be available in the foreseeable future, then maybe anyone here could help with how to disable dev-tools from the dev build? | 2022-07-19T04:51:39 | 2022-07-19T04:51:39 | {} | NONE |
vuejs | core | 1,188,661,362 | 6,299 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 3cfd93da6737c0dcf97a5578b06f3b9921ffc01b |
|<span aria-hidden="true">🔍</span> Latest deploy log | htt... | 2022-07-19T06:41:32 | 2022-07-19T06:41:32 | {} | NONE |
vuejs | core | 1,187,714,777 | 6,277 | lidlanca | here is the reassessed relevant general logic vue follows.
**1**. if the attribute name exists as an element prop, set the element prop.
**2**. if the value is null, remove the attribute ( empty string should not remove attribute, with the exception of prop with a number type)
**3**. when the attribute name is *... | 2022-07-18T16:32:20 | 2022-07-19T07:40:30 | {} | CONTRIBUTOR |
vuejs | core | 1,189,693,087 | 6,298 | ikrong | An issue has been reported to vite team vitejs/vite#9231 | 2022-07-20T01:02:45 | 2022-07-20T01:02:45 | {} | NONE |
vuejs | core | 1,190,155,299 | 6,313 | puskuruk | If it's OK, I want to work on this issue, and it'll be my first contribution to Vue.js 🎉 | 2022-07-20T11:25:58 | 2022-07-20T11:25:58 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 1,191,183,071 | 6,236 | bufan-huang | v-show 控制的是是否显示,所以动画其实在后台还会持续。需要重置的话属于你在点击事件里自行做重置 | 2022-07-21T08:13:58 | 2022-07-21T08:13:58 | {} | NONE |
vuejs | core | 1,192,436,910 | 2,562 | tklkalok | I am now facing the exact same situation that needs to access the child component's context (or called instance) in custom directives.
I found that for the mounted arguments ($el, $binding, $vnode, $prevVnode), $vnode.dirs[0].instance sometimes return the child component's context (or instance) and I can manipulate ... | 2022-07-22T10:40:21 | 2022-07-22T10:40:21 | {} | NONE |
vuejs | core | 1,193,724,533 | 6,219 | zezhongmiao | > > >
> >
> >
> > 不行啊 调用parentComp.ctx.deacti 报错
>
> 我上传了一个示例代码,你可以看一下, [给 keep-alive 下的 component 接收的组件包上一层自定义 name 的壳](https://github.com/chenhaihong/keep-alive-wrap-customed-name/blob/50b14e813bdf1e748639c693753674ecd19a9304/src/components/HelloWorld.vue#L34)
deactive的时候 还是有问题的 vue-router
[hminghe... | 2022-07-25T08:09:07 | 2022-07-25T08:09:07 | {} | NONE |
vuejs | core | 1,193,775,076 | 5,785 | LinusBorg | Cool, thanks. Closing this as it's already done? | 2022-07-25T08:58:20 | 2022-07-25T08:58:20 | {} | MEMBER |
vuejs | core | 1,194,180,043 | 4,662 | soultice | > > I've since found another workaround that doesn't require to import each component specifically. Assuming `customElement: true` in vite.config.ts is set:
> > ```ts
> > const styles: string[] = []
> > const modules = import.meta.glob('./**/*.vue');
> >
> > for (const path in modules) {
> > const mod = await ... | 2022-07-25T15:11:18 | 2022-07-25T15:11:18 | {
"+1": 3
} | NONE |
vuejs | core | 1,188,661,285 | 6,299 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vuejs-coverage* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 3cfd93da6737c0dcf97a5578b06f3b9921ffc01b |
|<span aria-hidden="true">🔍</span> Latest deploy log | https:/... | 2022-07-19T06:41:26 | 2022-07-19T06:41:26 | {} | NONE |
vuejs | core | 1,188,694,755 | 6,271 | kanbykanby | 建议还是用英文吧。。。这里的维护者基本上看不懂中文的。
I recommend using English. | 2022-07-19T07:24:16 | 2022-07-19T07:24:16 | {
"+1": 3
} | NONE |
vuejs | core | 1,189,797,075 | 6,264 | sxzz | The official playground is not supported, but you can try [Element Plus playground](https://element-plus.run/). Try `Ctrl / ⌥` + `Shift` + `F`. | 2022-07-20T03:55:36 | 2022-07-20T03:55:36 | {
"laugh": 1
} | MEMBER |
vuejs | core | 1,189,949,587 | 6,310 | littleweb | > @littleweb 同理 Same
>
> ```ts
> defineAsyncComponent(() => import('http://example.com/path/to/page1.js').then(m => m.default))
> ```
尝试了一下,onMounted没有执行,打包的组件代码如下:
```
<script>
export default {
name: "xxx-lib"
}
</script>
<template>
<div>
{{docid}}
</div>
</template... | 2022-07-20T07:54:18 | 2022-07-20T07:54:18 | {} | NONE |
vuejs | core | 1,191,116,360 | 4,745 | zhylmzr | If you use `less`, you can nest styles in two ways.
```
// component style
@deep: ~':deep()';
@{deep} {
.cls-1 {}
.cls-2 {}
}
```
or
```
// vite.config.js
export default {
css: {
preprocessorOptions: {
less: {
modifyVars: {
'deep': ':... | 2022-07-21T06:59:28 | 2022-07-21T06:59:28 | {
"+1": 3,
"heart": 1,
"hooray": 1
} | NONE |
vuejs | core | 1,192,502,650 | 6,334 | LinusBorg | Please provide a **runnable** reproduction | 2022-07-22T12:04:03 | 2022-07-22T12:04:03 | {} | MEMBER |
vuejs | core | 1,194,293,945 | 6,350 | hubvue | The type checking from `vscode` is fine, but running `pnpm run test-dts-only` doesn't pass the type checking in `tsconfig.build.json`, so I'll see what the problem is tomorrow, and I'm going to bed now in order for k to work properly tomorrow. | 2022-07-25T16:06:56 | 2022-07-25T16:06:56 | {} | NONE |
vuejs | core | 1,188,661,354 | 6,299 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-next-template-explorer* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 3cfd93da6737c0dcf97a5578b06f3b9921ffc01b |
|<span aria-hidden="true">🔍</span> Latest deploy l... | 2022-07-19T06:41:31 | 2022-07-19T06:41:31 | {} | NONE |
vuejs | core | 1,188,986,051 | 6,307 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 30c46ba9693e1129136458e41dc7a4148a065a21 |
|<span aria-hidden="true">🔍</span> Latest deploy log | htt... | 2022-07-19T12:23:02 | 2022-07-19T12:23:02 | {} | NONE |
vuejs | core | 1,189,829,007 | 6,310 | littleweb | > ```ts
> defineAsyncComponent(() => import('/path/to/page1.js').then(m => m.default))
> ```
如果page1.js是远程的呢,比如http:xxx.com/page1.js | 2022-07-20T04:56:06 | 2022-07-20T04:56:06 | {} | NONE |
vuejs | core | 1,189,882,882 | 6,310 | sxzz | @littleweb 同理 Same
```ts
defineAsyncComponent(() => import('http://example.com/path/to/page1.js').then(m => m.default))
``` | 2022-07-20T06:31:26 | 2022-07-20T06:31:43 | {} | MEMBER |
vuejs | core | 1,190,290,819 | 6,301 | LinusBorg | > Registers a callback to be called after the component instance is inserted into the DOM **as part of a tree cached by [<KeepAlive>](https://vuejs.org/api/built-in-components.html#keepalive)**.
https://vuejs.org/api/composition-api-lifecycle.html#onactivated
You might be looking for `onMounted` | 2022-07-20T13:30:35 | 2022-07-20T13:30:35 | {} | MEMBER |
vuejs | core | 1,191,100,338 | 5,104 | SSQLQIANBB | ```javascript
const { isEdit } = toRefs(
withDefaults(
defineProps<{
isEdit?: boolean;
}>(),
{ isEdit: true }
)
);
```
why withDefaults is not defined
but bottom is right
```javascript
const props = withDefaults(
defineProps<{
isEdit?: boolean;
}>(... | 2022-07-21T06:40:06 | 2022-07-21T06:43:47 | {
"+1": 1
} | NONE |
vuejs | core | 1,192,563,995 | 6,313 | puskuruk | Ping 🙈 | 2022-07-22T13:16:53 | 2022-07-22T13:16:53 | {} | CONTRIBUTOR |
vuejs | core | 1,192,592,563 | 6,313 | ennioVisco | > Ping 🙈
? | 2022-07-22T13:45:51 | 2022-07-22T13:45:51 | {} | NONE |
vuejs | core | 1,192,600,861 | 6,313 | puskuruk | I don't know how the Vue.js team works and when I didn't get any feedback yet, I wanted to remind you again. | 2022-07-22T13:54:18 | 2022-07-22T13:54:18 | {} | CONTRIBUTOR |
vuejs | core | 1,194,291,989 | 6,350 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vuejs-coverage* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 13f636677af9f453a297d90e2125ae2b661813b5 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https:/... | 2022-07-25T16:05:31 | 2022-07-25T16:05:31 | {} | NONE |
vuejs | core | 1,195,013,724 | 6,333 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vuejs-coverage* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 311ed38210771fd40b5a51f2ba44f0ac539fc7c4 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https:/... | 2022-07-26T05:16:52 | 2022-07-26T05:16:52 | {} | NONE |
vuejs | core | 1,193,084,906 | 3,102 | achaphiv | I was able to get volar to properly see props/slots, but it required manually defining the `Slots` and using a wrapper component.
The `<NoGenerics>` component is implemented normally
```vue
<template>
<div>
<template v-if="isLoading">
<slot name="loading">Loading</slot>
</template>
<temp... | 2022-07-23T08:14:25 | 2022-07-26T18:14:24 | {
"confused": 5,
"hooray": 8
} | NONE |
vuejs | core | 1,188,947,569 | 4,662 | Hobart2967 | > I've since found another solution that doesn't require to import each component specifically. Assuming `customElement: true` in vite.config.ts is set:
>
> ```ts
> const styles: string[] = []
> const modules = import.meta.glob('./**/*.vue');
>
> for (const path in modules) {
> const mod = await modules[path... | 2022-07-19T11:40:38 | 2022-07-19T11:40:38 | {} | NONE |
vuejs | core | 1,190,135,669 | 6,310 | LinusBorg | It's a question that concerns build systems / bundlers first and foremost, and can't be solved/answered in Vue core | 2022-07-20T11:02:50 | 2022-07-20T11:02:50 | {} | MEMBER |
vuejs | core | 1,192,685,083 | 6,242 | aborn | > > /cc @skirtles-code What do you think about this in terms of docs, expected behavior and such?
>
> We probably can tighten this up a bit in the docs, but I also feel like there genuinely is a core bug here.
>
> The `ref: search` part in the compiled output is only being included if some very specific criteria ... | 2022-07-22T15:23:28 | 2022-07-22T15:23:28 | {
"+1": 2
} | NONE |
vuejs | core | 1,195,427,223 | 6,360 | LinusBorg | Yes, this is expected behavior.
When a ref contains an object, getting its inner value will give you the reactive proxy, not the original object.
You are confusing `unref()`, which gives you the inner value of a ref, with `toRaw()`, which gives you the raw original object for a reactive proxy.
| 2022-07-26T12:37:19 | 2022-07-26T12:37:40 | {} | MEMBER |
vuejs | core | 1,276,994,780 | 6,867 | GDGHD-123 | My suggestion is that you can set the default value of prosp in MyComponent to false so that you don't need to pass is-some-bool= "false". | 2022-10-13T03:57:59 | 2022-10-13T03:57:59 | {
"+1": 1
} | NONE |
vuejs | core | 1,278,716,414 | 6,882 | GDGHD-123 | <button @click="openModal">点击调用子组件方法</button> 我看到你这一句中文,但你遇到了啥问题能说下不,可能你已经说了,但我英文不太好。没能看出来 | 2022-10-14T09:09:05 | 2022-10-14T09:09:05 | {} | NONE |
vuejs | core | 1,278,749,388 | 6,881 | smallnine9 | @Linkontoask
because `<component a> equals to <component a="">` | 2022-10-14T09:36:27 | 2022-10-14T09:36:40 | {} | CONTRIBUTOR |
vuejs | core | 1,278,700,748 | 6,881 | GDGHD-123 | I have a doubt. Why do you define a Boolean type, but you pass a string | 2022-10-14T08:55:35 | 2022-10-14T08:55:35 | {} | NONE |
vuejs | core | 1,278,752,586 | 6,882 | GDGHD-123 | > typescript-eslint/recommend-require-type-check
好吧,我项目中确实没有使用到该插件....
| 2022-10-14T09:39:06 | 2022-10-14T09:39:06 | {} | NONE |
vuejs | core | 1,273,510,101 | 6,848 | liulinboyi | https://github.com/vuejs/core/discussions/6842#discussioncomment-3840648 | 2022-10-10T15:47:04 | 2022-10-10T15:47:04 | {} | MEMBER |
vuejs | core | 1,274,238,901 | 3,842 | fvena-portfolio | Any update on this? | 2022-10-11T07:46:42 | 2022-10-11T07:46:42 | {} | NONE |
vuejs | core | 1,274,271,750 | 6,850 | caohenghu | @posva so, why dev mode is different with build mode? | 2022-10-11T08:08:10 | 2022-10-11T08:08:10 | {} | NONE |
vuejs | core | 1,275,671,997 | 6,856 | LinusBorg | duplicate of #5032 | 2022-10-12T06:45:41 | 2022-10-12T06:45:48 | {} | MEMBER |
vuejs | core | 1,275,918,255 | 6,857 | zhangzhonghe | This is as expected.
When the setTimeout callback changes data.num, the order of rendering is as follows.
1. Component render function
2. WatchPostEffect callback
3. Component render function
Because the watchPostEffect callback runs with data.num changed to 10, the component always ends up display 10. | 2022-10-12T10:07:01 | 2022-10-12T10:09:44 | {} | MEMBER |
vuejs | core | 1,277,565,577 | 6,876 | sxzz | According to [RFC](https://github.com/vuejs/rfcs/discussions/369) `Unresolved Questions` chapter, I think we should have `$defineProps` or `$(defineProps())` to fix it. | 2022-10-13T12:55:44 | 2022-10-13T12:55:44 | {} | MEMBER |
vuejs | core | 1,277,572,787 | 6,876 | sxzz | Here are the very prototype of definitions FYR:
```vue
<script lang="ts" setup>
type Props = {
someArray: string[];
};
// ⬇️ ReactiveVariable<string[]>
const { someArray } = $defineProps<Props>();
// ⬇️ Ref<string[]>
const someArrayRef = $$(someArray);
</script>
```
```ts
/// <reference types=... | 2022-10-13T13:01:29 | 2022-10-13T13:16:04 | {
"heart": 1
} | MEMBER |
vuejs | core | 1,278,436,015 | 6,879 | zhangzhonghe | After ``await nextTick()``, the DOM has actually been updated, except that the screen has not been rendered yet.
Open [this](https://sfc.vuejs.org/#eNqVVUtu2zAQvQqhoo2ERp/8unCcwN11FRSIgWy0oWXKZiyRKjmyYxgGeoZeoFfsETokZUaxnSABbNjDeXwz82Y02gTfmyZZtiwYBENdKN4A0Qza5jYXhPC6kQrIhihWnhLBnmDMiwXZklLJmpzgtZMe7Aejy3XnSlJrGeY+5... | 2022-10-14T03:36:58 | 2022-10-14T03:48:04 | {} | MEMBER |
vuejs | core | 1,278,716,957 | 6,881 | smallnine9 | I find explanation in vue3 document as below:
>The Boolean absent props will be cast to false. You should set a default value for it in order to get desired behavior.
[https://vuejs.org/guide/components/props.html#prop-validation](url)
so as long as you set the Boolean props(except definitely false), it will cas... | 2022-10-14T09:09:32 | 2022-10-14T09:15:38 | {} | CONTRIBUTOR |
vuejs | core | 1,278,731,712 | 6,714 | yyx990803 | The fix is close - the root cause is that in unmount / already array branches, we are only mutating the refs array, however the array is non-reactive when we get it from the `refs` object.
When in dev mode or the binding ref is returned from setup(), the existing value should be retrieved from `setupState` so that i... | 2022-10-14T09:22:15 | 2022-10-14T09:22:15 | {} | MEMBER |
vuejs | core | 1,278,849,681 | 6,833 | nndnha | @SuzumiyaHaku Thanks for your v-memo suggestion! There is another way to solve this:
```vue
<template>
<h1>{{ counter }}</h1>
<Comp>
<template #header>
<template v-if="showHeader">
Header here
</template>
</template>
</Comp>
</template>
```
The main point of this issue i... | 2022-10-14T10:57:22 | 2022-10-14T10:59:04 | {} | NONE |
vuejs | core | 1,272,294,042 | 5,724 | qinlinwang | I have the similar problem.
I defined a native event (e.g., input) in the emits option:
```
// Home.vue
<template>
<div
class="tab"
contenteditable="true"
@input="handleInput"
>
Home component
</div>
</template>
<script setup lang="ts">
// 为组件的 emits 标注类型
const emit = d... | 2022-10-08T11:06:29 | 2022-10-08T11:37:21 | {} | NONE |
vuejs | core | 1,272,306,807 | 6,834 | 178me | The first method is not suitable for my needs
The second way can be tried tomorrow | 2022-10-08T12:22:57 | 2022-10-08T12:22:57 | {} | NONE |
vuejs | core | 1,272,454,798 | 6,838 | sxzz | A more troublesome example:
https://sfc.vuejs.org/#eNp9kNtqwzAMhl/FmEITaGy23QWnbOw1fJO6WpfOJ2yluyh598nzVkoL1ZX+X+LT4czfYhSnGXjPVTZpisgy4By32pvgM7LP0e8tvNvJfLGBNS0btuysPWO1vLqY66fnl/V/IVgQNhyaVdO22i/aK1npxCWB4KIdEYpCtZsRg2evpgwZNL8aqTm1MIqqKFWytpOv5IXDN3xyMSTs3BjFMQdPB/2uqf8KWfO+Ll48urhomoUYcy9l/jDlDccsQjpIykSaPU4OBGTX... | 2022-10-09T04:48:07 | 2022-10-09T04:48:07 | {} | MEMBER |
vuejs | core | 1,273,329,717 | 4,906 | yinxulai | > > 像这样声明一个组件,props 是默认为浏览器原生标签的 props。道具无法获取名称和年龄...😟这似乎与预期的行为不一致,也许我误解了?
>
> 我认为你应该定义道具。
>
> ```js
> interface TestProps {
> name: string;
> age?: number;
> }
>
> export const Test = defineComponent<TestProps>(function Test(props) {
> return () => {
> return <div>{props.name}</div>;
> };
... | 2022-10-10T13:40:37 | 2022-10-10T13:40:37 | {} | NONE |
vuejs | core | 1,277,689,287 | 6,867 | LinusBorg | I don't think we will add another Template API for this as the mentioned approaches should be enough to cover this in the usual scenarios. | 2022-10-13T14:17:43 | 2022-10-13T14:17:43 | {} | MEMBER |
vuejs | core | 1,278,636,841 | 6,880 | LinusBorg | We can't evaluate the problem without a real reproduction. Your code is eve incomplete (what is `Child`) | 2022-10-14T08:02:50 | 2022-10-14T08:02:50 | {} | MEMBER |
vuejs | core | 1,278,725,412 | 6,881 | GDGHD-123 | > I have a doubt. Why do you define a Boolean type, but you pass a string
const props = defineProps<{
a: string | boolean //It has to do with the order in which you place it
}>()
//If you're not sure if the variable is a string or a Boolean type. You can set it up this way
console.log(typeof props.a) // string | 2022-10-14T09:16:55 | 2022-10-14T09:16:55 | {} | NONE |
vuejs | core | 1,272,340,945 | 5,168 | jballa1 | I am having the same issue when working with Q-Table (Quasar). Because of this the table updates only first time and subsequent changes wont reflect throwing this issue | 2022-10-08T15:18:00 | 2022-10-08T15:18:00 | {} | NONE |
vuejs | core | 1,272,357,914 | 6,817 | posva | @johnsoncodehk do you know if this bug is related to vue-tsc? It's as if the type of `NONE` becomes just a regular `symbol` within the template | 2022-10-08T16:56:27 | 2022-10-08T16:56:27 | {} | MEMBER |
vuejs | core | 1,274,064,567 | 6,850 | sxzz | @zhangzhonghe I guess it's designed for DevTools in dev mode. There's `return __returned__`, and it lost reactivity.
<img width="340" alt="image" src="https://user-images.githubusercontent.com/6481596/194995988-ef2e1cb2-54b4-458c-8dc6-89e0941c98d2.png">
But in production mode, there's no `return __returned__`. The ... | 2022-10-11T04:17:48 | 2022-10-11T04:19:45 | {
"+1": 3
} | MEMBER |
vuejs | core | 1,274,170,955 | 6,689 | jd-solanki | Hi,
Is there any timeline for when this will be merged/released? | 2022-10-11T06:55:20 | 2022-10-11T06:55:20 | {} | NONE |
vuejs | core | 1,275,043,781 | 6,728 | weidehai | > Workaround:
>
> ```js
> watch(
> () => isActive.value,
> (v) => {
> if (v) {
> loadData()
> }
> },
> // use post
> { flush: 'post' }
> )
> ```
this workaround seems no work,vue will flush pre end post job when render a new component in vue 3.2.39 | 2022-10-11T17:31:39 | 2022-10-11T17:31:39 | {} | NONE |
vuejs | core | 1,275,470,812 | 4,294 | velly | Waiting for 3.3 ......
This is an obstacle for developing. | 2022-10-12T01:34:02 | 2022-10-12T01:38:00 | {
"eyes": 13
} | NONE |
vuejs | core | 1,277,099,941 | 6,867 | jacekkarczmarczyk | Change it to something that should be `false` by default, ex. if you have prop `hidden` that is `true` by default then you can change it to `visible` that would be `false` by default | 2022-10-13T06:36:20 | 2022-10-13T06:36:20 | {} | CONTRIBUTOR |
vuejs | core | 1,278,749,884 | 6,882 | DearGu | > <button @click="openModal">点击调用子组件方法 我看到你这一句中文,但你遇到了啥问题能说下不,可能你已经说了,但我英文不太好。没能看出来
你要使用这个ts lint的plugin才会报错的 plugin:@typescript-eslint/recommended-requiring-type-checking | 2022-10-14T09:36:48 | 2022-10-14T09:36:48 | {} | NONE |
vuejs | core | 1,273,817,943 | 6,849 | posva | The reproduction doesn't seem to showcase the error and is also quite convoluted.
Can you open a new issue if you manage to reproduce this in a boiled-down reproduction? Thanks | 2022-10-10T21:04:01 | 2022-10-10T21:04:01 | {} | MEMBER |
vuejs | core | 1,275,754,783 | 6,689 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 93e3b819bed4eb159cf7e22e54b4b9754be0bc77 |
|<span aria-hidden="true">🔍</span> Latest deploy log | htt... | 2022-10-12T08:03:01 | 2022-10-12T08:03:01 | {} | NONE |
vuejs | core | 1,277,430,876 | 6,833 | nndnha | @SuzumiyaHaku `v-if="true"` doesn't make sense in any real apps, I used it just to make a short description of the problem and the real problem is something like [this](https://sfc.vuejs.org/#eNqNUstO6zAQ/ZW5vou2orHLvaxK2oLYwAcgNt6EZkoC8UO2U4Si/DvjpA0pCMRufOZ5jk/Drq3l+xrZkqV+60obwGOo7VrqUlnjAjTgcDcHo+9tngXMoYWdMwom1DU... | 2022-10-13T11:03:17 | 2022-10-13T11:03:17 | {} | NONE |
vuejs | core | 1,277,563,313 | 6,578 | xsjcTony | I guess just temporarily cast it to the correct type.
```typescript
const { arr } = defineProps<{ arr: string[] }>()
passAsRef($$(arr) as unknown as Ref<string[]>)
```
Some thoughts: #6876 | 2022-10-13T12:53:45 | 2022-10-13T12:54:55 | {} | NONE |
vuejs | core | 1,278,681,271 | 6,881 | Linkontoask | Thank you for your reply.
But is this definition necessarily related to the HTML behavior you are talking about, I just want to get the correct props in the script.
I'm guessing that the value in the props is not the expected value because the correct attribute needs to be set for the element in dom.
I have an... | 2022-10-14T08:39:25 | 2022-10-14T08:43:33 | {} | NONE |
vuejs | core | 1,278,760,910 | 6,882 | DearGu | > > > > typescript-eslint/recommend-require-type-check
> > > > 好吧,我项目中确实没有使用到该插件....
> >
> >
> > 你可以试下在你项目使用这个插件 看看会不会有问题
>
> 这个插件怎么使用的,我可能还得查看下文档
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:vue/vue3-recommended'... | 2022-10-14T09:44:18 | 2022-10-14T09:45:10 | {} | NONE |
vuejs | core | 1,278,770,900 | 6,882 | GDGHD-123 | > > > > > typescript-eslint/recommend-require-type-check
> > > > > 好吧,我项目中确实没有使用到该插件....
> > >
> > >
> > > 你可以试下在你项目使用这个插件 看看会不会有问题
> >
> >
> > 这个插件怎么使用的,我可能还得查看下文档
>
> 或者你嫌麻烦 在你eslint的rules那里加上这几个也可以'@typescript-eslint/no-unsafe-call': 'error', '@typescript-eslint/no-unsafe-member-access': 'error', '@typ... | 2022-10-14T09:50:51 | 2022-10-14T09:50:51 | {} | NONE |
vuejs | core | 1,275,932,566 | 6,857 | LinusBorg | Your watchPostEffect has `data.num` as a dependency because of your console.log, so it re-runs after each re-render, re-setting data.num to 10 over and over. This is expected behavior resulting from a badly set up watch effect.
if your remove the console.log, it will show 10, and then 11, and then stop. | 2022-10-12T10:18:45 | 2022-10-12T10:19:15 | {} | MEMBER |
vuejs | core | 1,276,011,451 | 6,855 | d-koppenhagen | Will this fix also be applied for Vue `2.7.x` ? | 2022-10-12T11:31:02 | 2022-10-12T11:31:02 | {} | NONE |
vuejs | core | 1,278,076,649 | 6,867 | shawn-m-tech | P.S. real world usecase using vue3datepicker library.
```
<date-picker
:clearable="false"
:Is24="false"
:month-change-on-scroll="false"
/>
```
These are all true by default and the suggested refactors don't really make sense for this particular use case.
Eg: clearable, what else would it be called to ma... | 2022-10-13T19:18:05 | 2022-10-14T07:00:04 | {} | NONE |
vuejs | core | 1,278,776,852 | 6,202 | yyx990803 | Repro 1's root cause is that `slots` isn't reactive, similar to `attrs`.
[Workaround example](https://sfc.vuejs.org/#eNqtVU1v2zAM/SuqCzQpGlvtEGCbl7TYChQYUOywbrvMOzi2nLizJUGSsxZB/vtISXZs92OX9dBI5BNFvkdTu+CjlNG2YUEcLHSmSmmIZqaRlwkvaymUITuiWEH2pFCiJhOATjrXtailt0cUNxhp6J4P/HMPSPiCutvgHtgYVssqNQx2hCws0i5h07rIcZqZUnC9TIId... | 2022-10-14T09:56:02 | 2022-10-14T09:56:25 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,272,355,676 | 6,834 | posva | This is expected as @jacekkarczmarczyk pointed you. In your case [you do need that `.value`](https://sfc.vuejs.org/#__SSR__eNqNUktOwzAQvcrIq1ZqY7qNkiLEBRDqru6iJJOSKnEs2wlCIUvEDRBLxCHYcB1A4haM86nKn00Uz+e9mfemZkdKeVWJzGeBiXSqLBi0pYJsLTehYNYINhcyzVWhLdQQFbkqLcYT0JhAA4kuchCMEATblS3Q2CHjcfdyFK4gKiSlbGozXFwqhNDBjGbjDxlD4aWQA... | 2022-10-08T16:43:16 | 2022-10-08T16:43:16 | {} | MEMBER |
vuejs | core | 1,274,158,207 | 6,850 | posva | This is working as expected. When returning the number, it’s being copied. Refs are not. Use a ref if you need it to be reactive | 2022-10-11T06:40:45 | 2022-10-11T06:40:45 | {
"+1": 1,
"confused": 1
} | MEMBER |
vuejs | core | 1,274,296,097 | 5,657 | Rachael0108 | > I also had this issue only in prod mode. [vue3报错TypeError: Cannot read properties of null (reading 'insertBefore')](https://juejin.cn/post/7095997262878212104) helped me fix it.
>
> Before
>
> ```
> <el-table :columns="columns" :dataSource="dataSource">
> <template #default="{ row }">
> <span>{{ row.l... | 2022-10-11T08:24:46 | 2022-10-11T08:24:46 | {} | NONE |
vuejs | core | 1,275,817,456 | 6,853 | zhangzhonghe | duplicate of #6852
This is because the line break between elements creates a blank text node, causing the same bug as #6852 | 2022-10-12T08:51:48 | 2022-10-12T08:51:48 | {} | MEMBER |
vuejs | core | 1,277,494,708 | 6,578 | xsjcTony | I cannot find a way to fix it, as it goes for
either `$$([a, b])` (e.g. in `watch`) mentioned in #5976
or the situation discussed above (to keep reactivity for values deconstructed from `props`)
I tried to add another rule for Arrays
`export declare function $$<T extends unknown[]>(value: T): Ref<T>`
It does f... | 2022-10-13T11:56:50 | 2022-10-13T11:57:12 | {} | NONE |
vuejs | core | 1,277,690,449 | 6,853 | LinusBorg | closing in favor of #6852 | 2022-10-13T14:18:34 | 2022-10-13T14:18:34 | {} | MEMBER |
vuejs | core | 1,278,730,033 | 6,881 | Linkontoask | @GDGHD-123
Do you think it's a good solution when it's the user who takes the initiative to solve a non-intuitive problem? | 2022-10-14T09:20:45 | 2022-10-14T09:20:45 | {} | NONE |
vuejs | core | 1,272,283,836 | 6,835 | baiwusanyu-c | > > try this ?
> > ```
> > <KeepAlive>
> > <Transition name="fade" mode="out-in">
> > <Comp1 v-if="model === 1" />
> > <Comp2 v-else />
> > </Transition>
> > </KeepAlive>
> > ```
>
> This will make keepAlive not work.
you are right.maybe it is a bug | 2022-10-08T10:07:43 | 2022-10-08T10:07:43 | {} | MEMBER |
vuejs | core | 1,272,337,295 | 5,612 | dpschen | Makes sense. I did some more digging and found this in volar:
```ts
export type ComponentProps<T> =
${vueCompilerOptions.strictTemplates ? '' : 'Record<string, unknown> &'}
GlobalAttrs &
ExtractProps<T>;
```
([source](https://github.com/johnsoncodehk/volar/blob/354c878ea8fd73255c5f614472c4fcda907a7ff3/vue-l... | 2022-10-08T14:57:30 | 2022-10-08T14:57:30 | {} | NONE |
vuejs | core | 1,272,366,440 | 6,817 | johnsoncodehk | @posva this is expected behavior because in template `NONE` access via component context, and `NONE` type is change from `unique symbol` to `symbol` in setup return. It can reproduce with:
```ts
import { defineComponent } from 'vue';
const NONE: unique symbol = Symbol('none');
const Comp = defineComponent({
... | 2022-10-08T17:44:17 | 2022-10-08T17:44:17 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,273,685,984 | 6,848 | LinusBorg | All of the points you want to see changed where purposely designed this way [see RFC](https://github.com/vuejs/rfcs/blob/master/active-rfcs/0040-script-setup.md) and for obvious reasons will not change now.
You are free to start a discussion about a different approach in the rfcs repo, but dont expect it to be imple... | 2022-10-10T18:42:20 | 2022-10-10T18:43:08 | {} | MEMBER |
vuejs | core | 1,275,756,203 | 6,689 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vuejs-coverage* failed.
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 93e3b819bed4eb159cf7e22e54b4b9754be0bc77 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https:/... | 2022-10-12T08:04:10 | 2022-10-12T08:04:10 | {} | NONE |
vuejs | core | 1,276,842,043 | 2,588 | PixsaOJ | Hey, is this merged? And how to use it? | 2022-10-12T23:28:48 | 2022-10-12T23:28:48 | {} | NONE |
vuejs | core | 1,277,313,340 | 6,874 | sxzz | cn.vuejs.org is the documentation of Vue 3, and here vuejs/core is also repo of Vue 3.
Here is [Vue 2 docs](https://v2.vuejs.org/) | 2022-10-13T09:31:41 | 2022-10-13T09:31:41 | {} | MEMBER |
vuejs | core | 1,278,776,154 | 6,882 | DearGu | > > > > > > typescript-eslint/recommend-require-type-check
> > > > > > 好吧,我项目中确实没有使用到该插件....
> > > >
> > > >
> > > > 你可以试下在你项目使用这个插件 看看会不会有问题
> > >
> > >
> > > 这个插件怎么使用的,我可能还得查看下文档
> >
> >
> > 或者你嫌麻烦 在你eslint的rules那里加上这几个也可以'@typescript-eslint/no-unsafe-call': 'error', '@typescript-eslint/no-unsafe-memb... | 2022-10-14T09:55:28 | 2022-10-14T10:00:19 | {} | NONE |
vuejs | core | 1,272,540,085 | 2,417 | norangit | so far, any update? Is that doing? | 2022-10-09T13:13:43 | 2022-10-09T13:13:43 | {} | NONE |
vuejs | core | 1,272,968,684 | 6,829 | yamiwamiyu | vue1.vue
```
<template>
<div>
<div id="target" v-bind="$attrs"></div>
</div>
</template>
<script>
export default {
name: "ee-navi",
inheritAttrs: false,
}
</script>
```
vue2.vue
```
<template>
<vue1 class="vue2"></vue1>
</template>
<style scoped>
.vue2 { font-size:100px }
</style>
... | 2022-10-10T08:37:04 | 2022-10-10T08:37:04 | {} | NONE |
vuejs | core | 1,273,909,030 | 6,848 | louiss0 | Ok then. From now on I'll have to tell developers to put the state inside of the setup block but components will stay in the original script block | 2022-10-10T23:28:14 | 2022-10-10T23:28:14 | {} | NONE |
vuejs | core | 1,275,740,564 | 6,857 | wellrus | @zghbyslzf
https://sfc.vuejs.org/#eNp9Uk1vgzAM/StWLqUqBbojo5WmafcddsyFpWalgiRKDNWE+O8z0K8VqZcoTvzes/3ciTdro7ZBkYqMsLZVTriTGiDbly2oKvd+K4UyjSYpYFd66DrY55RHuqmh77OY8xiQxXdoDr1ypSXwSI3ll7K2xhEwFItS47vhWKOmEBzmisoWQzjlpA6fxtNHUaAi6KFwpoYFV7d4HUiV0Z5GcdhecUE3VMvFpJCEUvfLIfOBKgiWsN3BmDmQmAqjyvwEi0fJwJpSE2yWtxa3sIDVNWR2uP/... | 2022-10-12T07:51:09 | 2022-10-12T07:53:50 | {} | NONE |
vuejs | core | 1,276,949,296 | 6,857 | zghbyslzf | > @zghbyslzf https://sfc.vuejs.org/#eNp9Uk1vgzAM/StWLqUqBbojo5WmafcddsyFpWalgiRKDNWE+O8z0K8VqZcoTvzes/3ciTdro7ZBkYqMsLZVTriTGiDbly2oKvd+K4UyjSYpYFd66DrY55RHuqmh77OY8xiQxXdoDr1ypSXwSI3ll7K2xhEwFItS47vhWKOmEBzmisoWQzjlpA6fxtNHUaAi6KFwpoYFV7d4HUiV0Z5GcdhecUE3VMvFpJCEUvfLIfOBKgiWsN3BmDmQmAqjyvwEi0fJwJpSE2yWtxa3sIDVNWR2uP/b... | 2022-10-13T02:33:20 | 2022-10-13T02:33:20 | {} | NONE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.