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,041,104,644 | 5,437 | sombriks | > props are read only, `toRef` on a prop is still read only.
so should i emit update:modelValue watching a regular ref? | 2022-02-16T04:51:16 | 2022-02-16T04:51:16 | {} | NONE |
vuejs | core | 1,036,236,113 | 5,389 | pikax | Having 2 types that do the same thing is not correct, `ComponentCustomProperties` already exists and is [documented](https://vuejs.org/api/utility-types.html#componentcustomproperties).
For the
> So the user now the user augments the GlobalProperties correctly and it will propogate to the ComponentCustomPrope... | 2022-02-11T13:53:34 | 2022-02-11T14:02:35 | {} | MEMBER |
vuejs | core | 1,036,977,302 | 4,704 | netlify[bot] | ✔️ Deploy Preview for *vue-sfc-playground* ready!
🔨 Explore the source changes: 86bd05702e13c2e88fd3f5831e4b4b88fe19e5e7
🔍 Inspect the deploy log: [https://app.netlify.com/sites/vue-sfc-playground/deploys/62072d25d81e0400081f8585](https://app.netlify.com/sites/vue-sfc-playground/deploys/62072d25d81e0400081f8585)
... | 2022-02-12T03:44:43 | 2022-02-12T03:48:53 | {} | NONE |
vuejs | core | 1,035,863,245 | 4,397 | xiaoxiangmoe | @leonzalion Maybe you should use `const myRef = ref<null | InstanceType<typeof MyComponent>>(null);`
| 2022-02-11T03:59:43 | 2022-02-12T07:12:50 | {
"+1": 20
} | CONTRIBUTOR |
vuejs | core | 1,037,047,577 | 5,407 | NoelDeMartin | @lidlanca Sorry about that, it seems like I didn't save the reproduction properly. I tried with a `<span>` instead of a text node to test what happens when you are not using a text node, and I could see that warning as you point out. But if you are using a text node (I've updated the stackblitz), it doesn't show you an... | 2022-02-12T07:43:18 | 2022-02-12T07:43:18 | {} | CONTRIBUTOR |
vuejs | core | 1,037,060,899 | 5,410 | yyx990803 | Vue has had fully automatic batching for updates triggered from all sources since the very first version of Vue 2 (released in 2016).
It's actually baffling that React still doesn't have it today. | 2022-02-12T08:20:41 | 2022-02-12T08:21:33 | {
"+1": 4,
"heart": 2
} | MEMBER |
vuejs | core | 1,037,064,479 | 5,412 | yyx990803 | Hmm... didn't realize it shows scroll bars on windows. I think it's probably better to hide the scroll bars alltogether. | 2022-02-12T08:30:52 | 2022-02-12T08:30:52 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,039,482,504 | 5,424 | LinusBorg | our opinion is that it's a bad idea to use complex, stateful classes that have their own side-effects in combination with reactivity.
We won't add such a helper to the core for that reason. | 2022-02-14T19:42:58 | 2022-02-14T19:42:58 | {} | MEMBER |
vuejs | core | 1,040,241,837 | 5,432 | netlify[bot] | ✔️ Deploy Preview for *vuejs-coverage* ready!
🔨 Explore the source changes: 1bd5fc0fd8c9703681d9e5e2752d016eafac3def
🔍 Inspect the deploy log: [https://app.netlify.com/sites/vuejs-coverage/deploys/620ba3548c854800075fa449](https://app.netlify.com/sites/vuejs-coverage/deploys/620ba3548c854800075fa449)
😎 Browse th... | 2022-02-15T12:58:01 | 2022-02-15T13:03:38 | {} | NONE |
vuejs | core | 1,041,034,043 | 5,419 | bw-CN | Thank you for your answer. Do you have any good suggestions for the following scenarios?
Actual scenario: [sfc.vuejs.org/](https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuICA8YnV0dG9uIEBjbGljaz1cImZsYWcgPSAhZmxhZ1wiPlxuICAgIHt7IGZsYWcgPyAnaGlkZScgOiAnc2hvdycgfX1cbiAgPC9idXR0b24+XG4gIDxidXR0b24gQGNsaWNrPVwiZGl... | 2022-02-16T02:38:02 | 2022-02-16T02:38:02 | {} | NONE |
vuejs | core | 1,036,319,511 | 5,367 | JoostKersjes | Can confirm this issue was due to a mismatch, closing, thanks! | 2022-02-11T15:14:40 | 2022-02-11T15:14:40 | {} | NONE |
vuejs | core | 1,036,977,303 | 4,704 | netlify[bot] | ✔️ Deploy Preview for *vuejs-coverage* ready!
🔨 Explore the source changes: 86bd05702e13c2e88fd3f5831e4b4b88fe19e5e7
🔍 Inspect the deploy log: [https://app.netlify.com/sites/vuejs-coverage/deploys/62072d2555f5cf000754c88c](https://app.netlify.com/sites/vuejs-coverage/deploys/62072d2555f5cf000754c88c)
😎 Browse th... | 2022-02-12T03:44:43 | 2022-02-12T03:52:11 | {} | NONE |
vuejs | core | 1,037,228,798 | 5,410 | LifeIsStrange | @yyx990803 thanks for the confirmation however would it make sense to provide a way to prevent a batch update like with ```ReactDOM.flushSync()``` ?
I don't see why Vue batching would always be desirable and not on the react proposal, I don't see a differentiating factor here. (or maybe Vue already expose a method fo... | 2022-02-12T13:40:04 | 2022-02-12T13:40:16 | {} | NONE |
vuejs | core | 1,033,347,794 | 5,382 | netlify[bot] | ✔️ Deploy Preview for *vue-sfc-playground* ready!
🔨 Explore the source changes: 25a5bb6d33ac479f66dfe305f614f1db495c87a3
🔍 Inspect the deploy log: [https://app.netlify.com/sites/vue-sfc-playground/deploys/620a26dbfea8cd0007b4aa1d](https://app.netlify.com/sites/vue-sfc-playground/deploys/620a26dbfea8cd0007b4aa1d)
... | 2022-02-09T04:52:35 | 2022-02-14T09:58:38 | {} | NONE |
vuejs | core | 1,038,876,465 | 5,382 | kuang-lingxi | >
Sorry I just noticed this. I just followed the docs before. Wouldn't it be better if the docs could be updated synchronously?
maybe a new pr is clearer. [5422](https://github.com/vuejs/core/pull/5422) | 2022-02-14T09:51:04 | 2022-02-14T10:10:56 | {} | CONTRIBUTOR |
vuejs | core | 1,038,972,555 | 5,399 | berridgeab | Thanks for investigating Linus, it works. | 2022-02-14T11:27:11 | 2022-02-14T11:27:11 | {} | NONE |
vuejs | core | 1,039,916,777 | 5,429 | netlify[bot] | ✔️ Deploy Preview for *vue-next-template-explorer* ready!
🔨 Explore the source changes: 95bdd4ad91c407b49d16df60ff5bbd52751963b4
🔍 Inspect the deploy log: [https://app.netlify.com/sites/vue-next-template-explorer/deploys/620b4cfdbd1a6b000726c25a](https://app.netlify.com/sites/vue-next-template-explorer/deploys/620... | 2022-02-15T06:49:37 | 2022-02-15T06:50:19 | {} | NONE |
vuejs | core | 1,041,033,866 | 5,436 | netlify[bot] | ✔️ Deploy Preview for *vue-next-template-explorer* ready!
🔨 Explore the source changes: 2389d8cccd9827083230832f0834081329aedeb5
🔍 Inspect the deploy log: [https://app.netlify.com/sites/vue-next-template-explorer/deploys/620c636c77d8b300071abb31](https://app.netlify.com/sites/vue-next-template-explorer/deploys/620... | 2022-02-16T02:37:37 | 2022-02-16T02:38:46 | {} | NONE |
vuejs | core | 1,041,115,752 | 5,437 | sombriks | @lidlanca thanks! both suggestions works!
### low level
https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cD5cbmltcG9ydCB7IHJlZiB9IGZyb20gJ3Z1ZSc7XG4gIFxuaW1wb3J0IENvbXAgZnJvbSBcIi4vQ29tcC52dWVcIjtcblxuY29uc3QgbXNnID0gcmVmKCdIZWxsbyBXb3JsZCEnKVxuPC9zY3JpcHQ+XG5cbjx0ZW1wbGF0ZT5cbiAgPGgxPnt7IG1zZyB9fTwvaDE+XG4... | 2022-02-16T05:12:05 | 2022-02-16T05:12:05 | {} | NONE |
vuejs | core | 1,037,171,248 | 5,415 | M1CK431 | Hi and thanks for quick reply,
> Please follow Issue guidelines and provide a ( as runnable as possible) reproduction. We understand it may be hard, but we can't debug this by guessing what you might have one exactly.
>
> I mean, at the _very, very, very least_ provide the actual error message that you get.
I ... | 2022-02-12T11:45:30 | 2022-02-12T11:45:30 | {} | NONE |
vuejs | core | 1,037,562,758 | 5,417 | netlify[bot] | ✔️ Deploy Preview for *vue-sfc-playground* ready!
🔨 Explore the source changes: 834965a0b829138ec7a9ec08a8002b74e8e21a1a
🔍 Inspect the deploy log: [https://app.netlify.com/sites/vue-sfc-playground/deploys/620980be036016000726ab28](https://app.netlify.com/sites/vue-sfc-playground/deploys/620980be036016000726ab28)
... | 2022-02-12T23:13:29 | 2022-02-13T22:08:11 | {} | NONE |
vuejs | core | 1,041,186,201 | 3,117 | gjfei | > you can also do this:
>
> ```ts
> import { FunctionalComponent } from 'vue'
>
> const MyInput: FunctionalComponent<InputHTMLAttributes & { foo?: string}> = (props) => {
> return <input {...props}/>
> }
>
> const el = <MyInput foo="str" autofocus />
> ```
使用 单文件组件的时候怎么做呢? 用defineComponent包裹 | 2022-02-16T07:16:53 | 2022-02-16T07:17:17 | {} | NONE |
vuejs | core | 1,036,219,298 | 5,389 | pikax | > Only issue is while on ComponentCustomProperties a ref is available as the key, on the GlobalProperties it will be key.value
I think we can still have ComponentCustomProperties, but make the type a bit more lenient and supporting `Ref<T> | T` | 2022-02-11T13:34:39 | 2022-02-11T13:34:39 | {} | MEMBER |
vuejs | core | 1,036,336,817 | 5,409 | netlify[bot] | ✔️ Deploy Preview for *vue-next-template-explorer* ready!
🔨 Explore the source changes: 5cc64ebb00efbff81f83308dd123f4d8c460c7d5
🔍 Inspect the deploy log: [https://app.netlify.com/sites/vue-next-template-explorer/deploys/62068188abf02a00073d49b8](https://app.netlify.com/sites/vue-next-template-explorer/deploys/620... | 2022-02-11T15:32:29 | 2022-02-11T15:33:30 | {} | NONE |
vuejs | core | 1,037,150,445 | 5,415 | LinusBorg | Please follow Issue guidelines and provide a ( as runnable as possible) reproduction. We understand it may be hard, but we can't debug this by guessing what you might have one exactly.
I mean, at the *very, very, very least* provide the actual error message that you get. | 2022-02-12T11:16:07 | 2022-02-12T11:17:48 | {} | MEMBER |
vuejs | core | 1,039,878,859 | 1,539 | aaronransley | For future folks, I've solved this with the following "scope patch" where needed:
Using `<script setup>` in component using a render function:
```vue
// e.g. InlineComponent.vue
<script setup lang='ts'>
const scopePatch = { [getCurrentInstance().vnode.scopeId]: '' }
const InlineComponentRoot = () => h('div'... | 2022-02-15T05:37:23 | 2022-02-15T05:44:48 | {
"+1": 2
} | NONE |
vuejs | core | 1,040,731,025 | 4,836 | defaude | I was quite occupied with my normal job so I missed that this PR was out of sync. It's updated now so it _could_ be merged again 😇
Fixes #4832 | 2022-02-15T19:56:50 | 2022-02-15T19:56:50 | {} | CONTRIBUTOR |
vuejs | core | 1,039,139,544 | 5,424 | itkui | vue3 是用proxy创建一个新的代理对象来对所有的访问以及更新进行劫持。这里的类中的更新只会更新原对象,而不会触发视图渲染,你可以增加一个计时器,然后让视图再强制渲染一次,你就会发现,值已经更改了。
https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cD5cbmltcG9ydCB7IHJlZiwgcmVhY3RpdmUgfSBmcm9tICd2dWUnXG5jbGFzcyBGb28ge1xuICBjb25zdHJ1Y3RvcigpIHtcbiAgICB0aGlzLnRleHQgPSBcImluaXRhbCB0ZXh0XCI7XG5cbiAgICBzZXRUaW1lb3... | 2022-02-14T14:18:16 | 2022-02-14T14:18:16 | {} | NONE |
vuejs | core | 1,039,483,199 | 5,418 | LinusBorg | Please take usage questions to chat.vuejs.org, stack overflow etc.
As a hint, you are likely looking for the `ComponentPublicInstance` type. | 2022-02-14T19:43:52 | 2022-02-14T19:44:02 | {} | MEMBER |
vuejs | core | 1,039,916,778 | 5,429 | netlify[bot] | ✔️ Deploy Preview for *vuejs-coverage* ready!
🔨 Explore the source changes: 95bdd4ad91c407b49d16df60ff5bbd52751963b4
🔍 Inspect the deploy log: [https://app.netlify.com/sites/vuejs-coverage/deploys/620b4cfdc4cbb60007222ea7](https://app.netlify.com/sites/vuejs-coverage/deploys/620b4cfdc4cbb60007222ea7)
😎 Browse th... | 2022-02-15T06:49:37 | 2022-02-15T06:55:29 | {} | NONE |
vuejs | core | 1,036,336,833 | 5,409 | netlify[bot] | ✔️ Deploy Preview for *vue-sfc-playground* ready!
🔨 Explore the source changes: 5cc64ebb00efbff81f83308dd123f4d8c460c7d5
🔍 Inspect the deploy log: [https://app.netlify.com/sites/vue-sfc-playground/deploys/62068188913dca0007adbb1a](https://app.netlify.com/sites/vue-sfc-playground/deploys/62068188913dca0007adbb1a)
... | 2022-02-11T15:32:30 | 2022-02-11T15:34:56 | {} | NONE |
vuejs | core | 1,037,318,171 | 5,415 | LinusBorg | The error message *was* helpful.
It's caused by an edge case of 8457d8b980674b09547edb2dae28091306fe6aa8, where apollo defines a property with a getter on the component instance, and ghat getter would actually throw an error when called at that time as the object it accesses hasn'T been defined yet:
Essentially, ... | 2022-02-12T17:10:54 | 2022-02-12T17:10:54 | {
"+1": 2,
"heart": 1
} | MEMBER |
vuejs | core | 1,038,952,521 | 5,419 | LinusBorg | Yeah that's quite logical as you 1.) Move the content out of the source context so it's not part of the source's transition anymore, and 2) the teleported content is mounted into an existing element which won't trigger the transition wrapping that element. | 2022-02-14T11:07:19 | 2022-02-14T11:07:19 | {} | MEMBER |
vuejs | core | 1,039,477,482 | 5,426 | LinusBorg | Yeah well, it's never a good idea to pass a complex/stateful object to stringify.
I would not cosndier this a bug. You want to stringify the value, not the computed itself. | 2022-02-14T19:36:50 | 2022-02-14T19:36:50 | {} | MEMBER |
vuejs | core | 1,039,884,282 | 5,427 | LinusBorg | This reproduction is not minimal as it involves as lot of unnecessary code. Please boil it down to the minimum required to demonstrate your issue | 2022-02-15T05:49:24 | 2022-02-15T05:49:24 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,040,241,862 | 5,432 | netlify[bot] | ✔️ Deploy Preview for *vue-sfc-playground* ready!
🔨 Explore the source changes: 1bd5fc0fd8c9703681d9e5e2752d016eafac3def
🔍 Inspect the deploy log: [https://app.netlify.com/sites/vue-sfc-playground/deploys/620ba354c2352a0008ca39ed](https://app.netlify.com/sites/vue-sfc-playground/deploys/620ba354c2352a0008ca39ed)
... | 2022-02-15T12:58:03 | 2022-02-15T13:00:29 | {} | NONE |
vuejs | core | 1,041,103,761 | 5,437 | lidlanca | props are read only, `toRef` on a prop is still read only. | 2022-02-16T04:48:55 | 2022-02-16T04:49:23 | {} | CONTRIBUTOR |
vuejs | core | 1,041,108,583 | 5,437 | lidlanca | with a writable computed as the model, emit the value on set
https://vuejs.org/guide/essentials/computed.html#writable-computed
or more low level
```
<input :value=props.modelValue @input="(e)=> emit('update:modelValue', e.target.value)">
``` | 2022-02-16T04:58:03 | 2022-02-16T04:58:03 | {} | CONTRIBUTOR |
vuejs | core | 1,114,173,911 | 5,837 | godingchen | 
| 2022-05-01T08:48:57 | 2022-05-01T08:48:57 | {} | NONE |
vuejs | core | 1,114,248,472 | 5,838 | liulinboyi | 可以试一试VSCcode 插件[Vue Language Features (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
### SFC在线例子
```javascript
<script lang="ts">
import MyModal from './MyModal.vue'
import { ref,nextTick } from 'vue'
import type { InstanceType } from 'vue'
export default {
components:... | 2022-05-01T14:07:45 | 2022-05-01T14:07:45 | {} | MEMBER |
vuejs | core | 1,114,267,060 | 5,838 | liulinboyi | > > 可以试一试VSCcode 插件[Vue Language Features (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
> > ### SFC在线例子
> > ```js
> > <script lang="ts">
> > import MyModal from './MyModal.vue'
> > import { ref,nextTick } from 'vue'
> > import type { InstanceType } from 'vue'
> >
> > export ... | 2022-05-01T15:35:01 | 2022-05-01T15:35:01 | {} | MEMBER |
vuejs | core | 1,114,276,051 | 5,838 | liulinboyi | >
> > > > > > 可以试一试VSCcode 插件[Vue Language Features (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
> > > > > > ### SFC在线例子
> > > > > > ```js
> > > > > > <script lang="ts">
> > > > > > import MyModal from './MyModal.vue'
> > > > > > import { ref,nextTick } from 'vue'
> > ... | 2022-05-01T16:13:58 | 2022-05-01T16:13:58 | {} | MEMBER |
vuejs | core | 1,114,488,068 | 5,843 | edison1105 | This is expected. This is because `computed` is calculated when the first value is taken.
You modified the `order` value before the `total` was accessed, which was before the `computed` value was calculated.
see [demo](https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cD5cbmltcG9ydCB7IHNoYWxsb3dSZWYsIGNvbXB1dGVk... | 2022-05-02T04:32:20 | 2022-05-02T04:33:34 | {
"+1": 2
} | MEMBER |
vuejs | core | 1,115,022,881 | 5,850 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 7f9348f1550009a7da9547bd66af1d7fe749fa9c |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-05-02T15:16:07 | 2022-05-02T15:22:15 | {} | NONE |
vuejs | core | 1,115,942,692 | 5,852 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | ee7df25fbacf43241a2cf944e7a71e48d8a6eb3d |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-05-03T10:18:23 | 2022-05-03T10:24:26 | {} | NONE |
vuejs | core | 1,116,054,142 | 5,837 | godingchen | > Your reproduction is far beyond minimal. We require minimal reproduction for big reports for a reason. Please do read the link @posva provided.
拉取仓库并不麻烦 | 2022-05-03T12:41:13 | 2022-05-03T12:41:13 | {} | NONE |
vuejs | core | 1,113,966,404 | 5,766 | liulinboyi | ### You can use runtime type check like this:
### [stackblitz Example](https://stackblitz.com/edit/vue-issue-repro-5766-j5tvga?file=src%2Fcomponents%2FMyComponent.vue)
### [SFC Example](https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cCBsYW5nPVwidHNcIj5cbmltcG9ydCBNeUNvbXBvbmVudCBmcm9tICcuL015Q29tcG9uZW50LnZ1Z... | 2022-04-30T10:44:55 | 2022-04-30T10:44:55 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,114,539,500 | 5,837 | godingchen | @liulinboyi | 2022-05-02T06:29:30 | 2022-05-02T06:29:30 | {} | NONE |
vuejs | core | 1,114,764,636 | 5,837 | Justineo | Your reproduction is far beyond minimal. We require minimal reproduction for big reports for a reason. Please do read the link @posva provided. | 2022-05-02T11:56:13 | 2022-05-02T11:56:13 | {} | MEMBER |
vuejs | core | 1,115,007,007 | 5,840 | dovrosenberg | This is super helpful, @LinusBorg. Thank you. I've had an outstanding question on [stack overflow](https://stackoverflow.com/questions/71198153/how-to-maintain-proper-typescript-type-on-vue-component-data) for a couple of months, if you want to post the same answer there for some credit. :) | 2022-05-02T15:04:05 | 2022-05-02T15:04:05 | {} | NONE |
vuejs | core | 1,116,024,742 | 5,854 | LinusBorg | The computed property doesn't access any reactive variables in Case 1, because at the moment that you read from the computed, `secondComposable` hasn't been set yet and you have this in your computed as the first line:
```js
if (!secondComposable) return false;
```
So this computable will now never update agai... | 2022-05-03T12:08:38 | 2022-05-03T12:08:38 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,117,131,879 | 5,837 | godingchen | 如果能最小化复现中请仅保留所反馈问题直接相关的代码,我何必要如此大费周折,把仓库都搬了上来。 | 2022-05-04T09:58:25 | 2022-05-04T09:58:25 | {} | NONE |
vuejs | core | 1,114,256,617 | 5,839 | hchlq | > [Fix example](https://deploy-preview-5842--vue-sfc-playground.netlify.app/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cD5cbmltcG9ydCB7IHJlZiB9IGZyb20gJ3Z1ZSdcblxuY29uc3QgbXNnID0gcmVmKCcnKVxuY29uc3QgZm9vID0gcmVmKCcnKVxuY29uc3QgZm9vMSA9IHJlZignJylcbjwvc2NyaXB0PlxuXG48dGVtcGxhdGU+XG4gIHRyaW0ubnVtYmVyOiA8aW5wdXQgdi1tb2RlbC50cmltLm5... | 2022-05-01T14:49:21 | 2022-05-01T14:49:21 | {} | CONTRIBUTOR |
vuejs | core | 1,115,057,588 | 5,850 | edison1105 | There is already a PR fixing #5839, and we should discuss something in that PR rather than submitting a new one. | 2022-05-02T15:50:30 | 2022-05-02T15:50:30 | {} | MEMBER |
vuejs | core | 1,115,088,717 | 5,847 | liulinboyi | In this [test case](https://github.com/vuejs/core/blob/4a3237ad9300693e465f82a6be3552565a1c4be3/packages/runtime-core/__tests__/componentProps.spec.ts#L157) if the props type is Boolean, absent should cast to false. | 2022-05-02T16:22:00 | 2022-05-02T16:22:00 | {} | MEMBER |
vuejs | core | 1,114,252,901 | 5,842 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-next-template-explorer* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | b002cee2f35e33da45f233a8aa251734df99793a |
|<span aria-hidden="true">🔍</span> Latest deploy lo... | 2022-05-01T14:27:29 | 2022-05-02T16:48:46 | {} | NONE |
vuejs | core | 1,116,666,280 | 5,830 | theolavaux | I noticed this bug too, is the PR submitted by @edison1105 ready to be merged? I see that all checks passed, is it waiting for a specific approval? | 2022-05-03T21:16:32 | 2022-05-03T21:17:33 | {} | NONE |
vuejs | core | 1,117,423,379 | 5,837 | godingchen | 求人不如求己,已找到解决办法,后来人可以参考下,附图


, the [Discord server](https://vue-land.js.org/) or [StackOverflow](http://stackoverflow.com/tags/vue.js). | 2022-04-29T14:25:42 | 2022-04-29T14:25:42 | {} | MEMBER |
vuejs | core | 1,107,451,528 | 5,789 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-next-template-explorer* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 234fe86e55ec7fa885a48eed897e76dd9a8f7bae |
|<span aria-hidden="true">🔍</span> Latest deploy lo... | 2022-04-23T10:51:50 | 2022-05-01T02:16:43 | {} | NONE |
vuejs | core | 1,114,204,913 | 5,837 | liulinboyi | > 
请打开控制台,查看DOM结构

| 2022-05-01T11:08:47 | 2022-05-01T11:08:47 | {} | MEMBER |
vuejs | core | 1,114,253,034 | 5,838 | zz541843 | 
还是说没有直接调用另一个组件的方法的写法,文档这里省略了template的代码? | 2022-05-01T14:28:08 | 2022-05-01T14:28:08 | {} | NONE |
vuejs | core | 1,114,352,227 | 5,837 | posva | Your reproduction is not minimal, please read and follow https://new-issue.vuejs.org/?repo=vuejs/vue-next#why-repro when reporting a bug. Most bugs should be reproducible with the [SFC Playground](https://sfc.vuejs.org). | 2022-05-01T22:24:16 | 2022-05-01T22:24:16 | {} | MEMBER |
vuejs | core | 1,115,047,467 | 5,849 | edison1105 | > After typing some codes into <script> tag, the "123123" disappear.
this is expected.
> I think vue3 can not operate with typescript perfectly. It still need to be improved.
talk is cheap, show me your code.
| 2022-05-02T15:40:11 | 2022-05-02T15:42:07 | {} | MEMBER |
vuejs | core | 1,116,052,374 | 5,837 | godingchen | > Your reproduction is far beyond minimal. We require minimal reproduction for big reports for a reason. Please do read the link @posva provided.
我已阅读过链接,无法通过[SFC Playground](https://sfc.vuejs.org/)复现问题,只能使用脚手架的方式。
| 2022-05-03T12:39:10 | 2022-05-03T12:39:10 | {} | NONE |
vuejs | core | 1,117,601,417 | 5,858 | Justineo | You can use `v-model="value"` and give `value` a computed setter. See [*Writable Computed*](https://vuejs.org/guide/essentials/computed.html#writable-computed). | 2022-05-04T17:13:49 | 2022-05-04T17:13:49 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,114,255,887 | 5,839 | liulinboyi | [Fix example](https://deploy-preview-5842--vue-sfc-playground.netlify.app/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cD5cbmltcG9ydCB7IHJlZiB9IGZyb20gJ3Z1ZSdcblxuY29uc3QgbXNnID0gcmVmKCcnKVxuY29uc3QgZm9vID0gcmVmKCcnKVxuY29uc3QgZm9vMSA9IHJlZignJylcbjwvc2NyaXB0PlxuXG48dGVtcGxhdGU+XG4gIHRyaW0ubnVtYmVyOiA8aW5wdXQgdi1tb2RlbC50cmltLm51b... | 2022-05-01T14:44:51 | 2022-05-01T14:44:51 | {} | MEMBER |
vuejs | core | 1,114,265,412 | 5,838 | liulinboyi | > > 可以试一试VSCcode 插件[Vue Language Features (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
> > ### SFC在线例子
> > ```js
> > <script lang="ts">
> > import MyModal from './MyModal.vue'
> > import { ref,nextTick } from 'vue'
> > import type { InstanceType } from 'vue'
> >
> > export ... | 2022-05-01T15:26:04 | 2022-05-01T15:26:04 | {} | MEMBER |
vuejs | core | 1,114,352,669 | 5,838 | posva | Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the [forum](http://forum.vuejs.org/), the [Discord server](https://vue-land.js.org/) or [StackOverflow](http://stackoverflow.com/tags/vue.js). | 2022-05-01T22:27:03 | 2022-05-01T22:27:03 | {} | MEMBER |
vuejs | core | 1,114,634,452 | 5,845 | liulinboyi | 如果在创建的时候选择了
```
Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)? Yes
```

在调用`compiler-sfc`中的`compileScript`时,会带上`jsx`插件

```javascript
... | 2022-05-03T14:30:35 | 2022-05-03T14:30:35 | {} | MEMBER |
vuejs | core | 1,116,941,577 | 5,274 | cyanxxx | Finally, I find the problem. Because the hoisted vnode. The '#editor' will be consider as static element. First time will be created and the second time beacuse the vnode was created before, the vnode.el already been set. So it just clone the el element. And because the branch condition, development will not cloneNode ... | 2022-05-04T05:28:43 | 2022-05-04T05:28:43 | {} | NONE |
vuejs | core | 1,116,968,031 | 5,857 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | b0e30c23174ade2d2c3c52bc755e387b999796aa |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-05-04T06:23:51 | 2022-05-04T06:29:40 | {} | NONE |
vuejs | core | 1,113,258,473 | 4,955 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-next-template-explorer* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | f9fc790952e37b027d45c954231d1675720f9ded |
|<span aria-hidden="true">🔍</span> Latest deploy lo... | 2022-04-29T12:31:21 | 2022-04-29T12:32:12 | {} | NONE |
vuejs | core | 1,113,955,557 | 5,835 | edison1105 | @cuixiaorui
as you can see `const enum` has no code associated with it after compilation, so it is relatively memory efficient and only serves as a syntax hint. And it's an internal enum for `compiler-dom` and `compiler-sfc` etc.
| 2022-04-30T09:16:24 | 2022-04-30T09:16:24 | {} | MEMBER |
vuejs | core | 1,114,147,594 | 5,823 | sadashivm | >  It's working fine. I think it's your environment. Suggestion: Delete node_modules and package-lock.json and try NPM install again. If you still can't provide your node version, please refer to vite project i... | 2022-05-01T06:32:04 | 2022-05-01T06:34:10 | {} | NONE |
vuejs | core | 1,114,183,540 | 5,837 | liulinboyi | 请看这个例子,响应未失效。
[例子](https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cD5cbmltcG9ydCB7IHJlYWN0aXZlLG9uTW91bnRlZCB9IGZyb20gJ3Z1ZSdcbmltcG9ydCBDb21wIGZyb20gJy4vQ29tcC52dWUnXG5jb25zdCBkYXRhID0gcmVhY3RpdmUoe2xpc3Q6IFtdfSlcblxub25Nb3VudGVkKCgpID0+IHtcbiAgZGF0YS5saXN0ID0gW1tcbiAgICAnMjAyMicsJ+Wbm+aciCcsJzQnLCB7XG4gICA... | 2022-05-01T09:29:05 | 2022-05-01T11:08:38 | {} | MEMBER |
vuejs | core | 1,114,635,087 | 5,846 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-next-template-explorer* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | c79238ef7e0245c437550e0ec0c8669a972ff977 |
|<span aria-hidden="true">🔍</span> Latest deploy lo... | 2022-05-02T08:54:10 | 2022-05-02T08:55:07 | {} | NONE |
vuejs | core | 1,116,075,092 | 5,837 | Justineo | 我最后再答复你一下,最小化复现中请仅保留所反馈问题直接相关的代码,不要包含第三方依赖(你给的复现中有大量无关代码和第三方依赖,这都会浪费定位问题的时间)。 | 2022-05-03T13:05:35 | 2022-05-03T13:05:35 | {} | MEMBER |
vuejs | core | 1,117,301,842 | 5,837 | edison1105 | > 如果能最小化复现中请仅保留所反馈问题直接相关的代码,我何必要如此大费周折,把仓库都搬了上来。
要最小化复现是为了确保不是第三方库导致的bug,越简单的demo越利于定位问题。另外,我们没有责任帮你从复杂的项目中定位bug。 | 2022-05-04T13:16:37 | 2022-05-04T13:16:37 | {} | MEMBER |
vuejs | core | 1,113,876,588 | 5,022 | Trinovantes | Related issue: https://github.com/vuejs/core/issues/5002 | 2022-04-30T00:37:21 | 2022-04-30T00:37:21 | {} | NONE |
vuejs | core | 1,114,802,471 | 5,841 | incutonez | Hey @LinusBorg, thanks for the response. I think I understand... `ref`'s value will wrap whatever I set in a proxy, so I essentially have a proxy of a proxy when using `ref`, but `computed`'s value will just be whatever is returned (without wrapping), which is the instance of `MyCollection`. You're then saying if I u... | 2022-05-02T12:42:06 | 2022-05-02T12:43:26 | {} | NONE |
vuejs | core | 1,115,022,884 | 5,850 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-next-template-explorer* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 7f9348f1550009a7da9547bd66af1d7fe749fa9c |
|<span aria-hidden="true">🔍</span> Latest deploy lo... | 2022-05-02T15:16:08 | 2022-05-02T15:17:12 | {} | NONE |
vuejs | core | 1,116,599,628 | 5,767 | ragokan | I am also having this issue in Vite. I get the `[vite] hot updated: /src/pages/data/category.vue` log on my console, yet nothing is updated. I use this with vue-router, so when I change the page and come back, I can see the update. | 2022-05-03T20:42:19 | 2022-05-03T20:42:19 | {
"+1": 1
} | NONE |
vuejs | core | 1,116,968,008 | 5,857 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-next-template-explorer* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | b0e30c23174ade2d2c3c52bc755e387b999796aa |
|<span aria-hidden="true">🔍</span> Latest deploy lo... | 2022-05-04T06:23:50 | 2022-05-04T06:24:39 | {} | NONE |
vuejs | core | 1,117,129,362 | 5,837 | godingchen | > 我最后再答复你一下,最小化复现中请仅保留所反馈问题直接相关的代码,不要包含第三方依赖(你给的复现中有大量无关代码和第三方依赖,这都会浪费定位问题的时间)。
無法最小化復現和包含第三方依賴,是不是就不能定位和處理,我重新復現問題加裝所有依賴也不會超過五分鐘。 | 2022-05-04T09:55:30 | 2022-05-04T09:55:30 | {} | NONE |
vuejs | core | 1,113,790,531 | 5,218 | joezimjs | > I think try not to change `<script>`, maybe `defineName('Foo')` is better.
At the very least, it fits with `defineProps` and `defineEmits`, so you're probably right that it's better. To go along with my suggestion about named exports, could we use `defineExportName` as well? | 2022-04-29T22:02:38 | 2022-04-29T22:02:38 | {} | NONE |
vuejs | core | 1,114,270,709 | 5,838 | liulinboyi | > > > > 可以试一试VSCcode 插件[Vue Language Features (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
> > > > ### SFC在线例子
> > > > ```js
> > > > <script lang="ts">
> > > > import MyModal from './MyModal.vue'
> > > > import { ref,nextTick } from 'vue'
> > > > import type { InstanceType } f... | 2022-05-01T15:55:51 | 2022-05-01T15:55:51 | {} | MEMBER |
vuejs | core | 1,114,252,895 | 5,842 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | b002cee2f35e33da45f233a8aa251734df99793a |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-05-01T14:27:27 | 2022-05-02T16:49:54 | {} | NONE |
vuejs | core | 1,116,001,438 | 4,662 | Chrisx0385 | Hi, is there a solution coming for this?
I currently use a workaround where I let vue-cli's webpack simply generate external link-tags inside a template tag. In the mounted hook I clone those tags into the shadow root.
This solution also works with @-paths for static assets in the css/scss.
I've added a minimal... | 2022-05-03T11:38:57 | 2022-05-03T11:38:57 | {
"+1": 2
} | NONE |
vuejs | core | 1,116,109,707 | 5,851 | onekiloparsec | I agree that I didn't provide any use case. And mine is probably small, I agree too. However, I don't think it is a niche technology. Given the activity in the academic community (and even outside), there will be IMHO a lot of Python people wanting to create scientific websites using their python code.
Being able to... | 2022-05-03T13:38:56 | 2022-05-03T13:38:56 | {
"+1": 5
} | NONE |
vuejs | core | 1,113,258,460 | 4,955 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | f9fc790952e37b027d45c954231d1675720f9ded |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-04-29T12:31:20 | 2022-04-29T12:33:32 | {} | NONE |
vuejs | core | 1,107,451,527 | 5,789 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vue-sfc-playground* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 234fe86e55ec7fa885a48eed897e76dd9a8f7bae |
|<span aria-hidden="true">🔍</span> Latest deploy log | http... | 2022-04-23T10:51:50 | 2022-05-01T02:18:17 | {} | NONE |
vuejs | core | 1,114,635,089 | 5,846 | netlify[bot] | ### <span aria-hidden="true">✅</span> Deploy Preview for *vuejs-coverage* ready!
| Name | Link |
|---------------------------------|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | c79238ef7e0245c437550e0ec0c8669a972ff977 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://... | 2022-05-02T08:54:10 | 2022-05-02T09:02:13 | {} | NONE |
vuejs | core | 1,115,549,042 | 5,849 | HHN0609 | > > After typing some codes into <script> tag, the "123123" disappear.
>
> this is expected.
>
> > I think vue3 can not operate with typescript perfectly. It still need to be improved.
>
> talk is cheap, show me your code.
Thanks! | 2022-05-03T02:12:37 | 2022-05-03T02:12:37 | {} | NONE |
vuejs | core | 1,116,026,295 | 5,851 | LinusBorg | I don't see a valid use case for this, and you didn't provide one. I don'T think we should invest any resources in supporting this as it's a niche technology right now. | 2022-05-03T12:10:34 | 2022-05-03T12:10:34 | {} | MEMBER |
vuejs | core | 1,116,034,211 | 5,854 | thomasaull | Thanks @LinusBorg for the explanation, it makes perfect sense!
For anyone who might find this issue with a similar problem, this can be circumvented by using a `shallowRef`:
```js
setup() {
const secondComposable = shallowRef();
const computedPropExample = computed(() => {
if (!secondComposable... | 2022-05-03T12:19:14 | 2022-05-03T12:19:14 | {
"+1": 1
} | NONE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.