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,800,853,766 | 9,559 | Alfred-Skyblue | Please note that in the `isSameVNodeType` function, the condition for determining the same component type is that the `type` of the two components is the same, and the `key` of the two components is also the same. However, in your example, each invocation of `render` returns different components, so they will be unmoun... | 2023-11-08T01:24:29 | 2023-11-08T01:24:29 | {} | MEMBER |
vuejs | core | 1,802,673,941 | 7,444 | amritk | This is much needed, thanks! | 2023-11-08T21:06:36 | 2023-11-08T21:06:36 | {
"+1": 1
} | NONE |
vuejs | core | 1,803,137,215 | 8,763 | Alfred-Skyblue | > > If I use Sortablejs for drag-and-drop cloning, when I drag the current element to another list, this element disappears in the `TransitionGroup`. At this point, if the `TransitionGroup` component is destroyed, the element will not be destroyed because it has already been moved to another component. However, the bou... | 2023-11-09T04:16:34 | 2023-11-09T04:16:34 | {} | MEMBER |
vuejs | core | 1,803,152,075 | 9,574 | bsuth | @Alfred-Skyblue Ah, I did not realize that reactive variables in `errorHandler` will also be collected by the render effect, thanks for the response!
I guess `onErrorCaptured` does not enter an infinite loop because internally it calls [injectHook](https://github.com/vuejs/core/blob/2c0414fdca5339857098b1eeaf2c74541... | 2023-11-09T04:39:35 | 2023-11-09T04:39:35 | {
"+1": 1
} | NONE |
vuejs | core | 1,803,179,796 | 8,763 | Alfred-Skyblue | @Justineo Thank you for your response, I re-understood this component, this event is only bound in the onUpdate hook, and the event will be removed during execution, which means that it will only trigger once, and only the elements that currently trigger the animation are bound, so it does not have the problem of unbin... | 2023-11-09T05:21:02 | 2023-11-09T05:21:02 | {} | MEMBER |
vuejs | core | 1,803,215,919 | 9,571 | Kassell | > Thank you for your understanding. We should be clear that properties prefixed with '_' are considered private and should not be used by users. These properties are intended for internal Vue usage and may change in future versions.
Sometimes we have no choice | 2023-11-09T06:03:34 | 2023-11-09T06:03:34 | {
"+1": 1
} | NONE |
vuejs | core | 1,806,578,358 | 8,530 | undergroundwires | This implementation lacks following signatures:
```typescript
export declare function toRef<T extends object, K extends keyof T>(object: T, key: K): ToRef<T[K]>;
export declare function toRef<T extends object, K extends keyof T>(object: T, key: K, defaultValue: T[K]): ToRef<Exclude<T[K], undefined>>;
```
Added... | 2023-11-11T00:03:46 | 2023-11-11T00:29:36 | {} | NONE |
vuejs | core | 1,807,320,792 | 9,589 | github-actions[bot] | ## Size Report
### Bundles
| File | Size | Gzip | Brotli |
| -------------------------- | ------- | ------- | ------- |
| runtime-dom.global.prod.js | 86.5 kB | 32.9 kB | 29.7 kB |
| vue.global.prod.js | 132 kB | 49.6 kB | 44.5 kB |
### Usages
| Name | Size |... | 2023-11-13T00:58:34 | 2023-11-13T00:58:34 | {} | NONE |
vuejs | core | 1,800,866,699 | 9,559 | Alfred-Skyblue | Based on the usage in the reference demo, we shouldn't redefine the same component each time.
https://play.vuejs.org/#eNqNU01v2zAM/SuCd3ACxNaK9uS5RZOhh+2wDduOvig2k6iRZUGS0wSB//tIOXE+2hW9JCbfI/X4tY+mxqSbFqIsyl1ppfHMgW/NQ6FlbRrr2Z5ZWExYBQup4WuDTg3aT9iKdWxhm5rFGB4PdGIc/Ckng7IjXOiy0c4zUXq5AXZPWUfx9CYenzALugKL2NVjo9GY3T+... | 2023-11-08T01:41:13 | 2023-11-08T01:41:13 | {} | MEMBER |
vuejs | core | 1,801,257,570 | 9,568 | github-actions[bot] | ## Size Report
### Bundles
| File | Size | Gzip | Brotli |
| -------------------------- | ------- | ------------------ | ------------------- |
| runtime-dom.global.prod.js | 86.4 kB | 32.9 kB | 29.6 kB |
| vue.global.prod.js | 132 kB ... | 2023-11-08T07:49:54 | 2023-11-08T07:49:54 | {} | NONE |
vuejs | core | 1,801,887,728 | 9,571 | Alfred-Skyblue | Sorry, my response was incomplete. Personally, I don't recommend manually modifying vnode or 'vue' related properties within the 'el'. It might lead to unexpected outcomes. You could encapsulate your component to achieve the desired effect.
[playground](https://play.vuejs.org/#eNp9UsFu2zAM/RVCFztA4Bx6y5xsXdHDdtiGbUd... | 2023-11-08T13:25:29 | 2023-11-08T13:25:29 | {} | MEMBER |
vuejs | core | 1,686,325,925 | 8,668 | github-actions[bot] | ## Size Report
### Bundles
| File | Size | Gzip | Brotli |
| -------------------------- | -------------------- | ------------------- | ------------------- |
| runtime-dom.global.prod.js | 86.6 kB (**+250 B**) | 32.9 kB (**+73 B**) | 29.7 kB (**+79 B**)... | 2023-08-21T13:24:45 | 2023-11-09T03:23:06 | {} | NONE |
vuejs | core | 1,803,237,218 | 8,926 | yyx990803 | https://github.com/vuejs/core/issues/8682#issuecomment-1803237113 | 2023-11-09T06:30:35 | 2023-11-09T06:30:35 | {} | MEMBER |
vuejs | core | 1,803,248,404 | 5,626 | yyx990803 | I don't think this behavior should be changed. There are two conflicting desired behavior here at play:
1. Calling `reactive` on the same object should always return the same proxy, if it already exists.
2. Calling `reactive` on an object with an existing proxy, but later changed to be non-extensible, should return... | 2023-11-09T06:42:25 | 2023-11-09T06:42:25 | {} | MEMBER |
vuejs | core | 1,799,300,100 | 9,558 | blake-newman | Hey! 😅 Yes its moi
Ill take a look at doing this tomorrow. | 2023-11-07T17:32:37 | 2023-11-07T17:32:37 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,801,365,580 | 9,565 | haoqunjiang | Can't reproduce the error. (I mean, I saw the incorrect result, but no error messages)
On the other hand, this is not a *minimal* reproduction, as it contains too many other things, Nuxt, Ant Design Vue…
To me, it is likely not a Vue bug. It looks more like an Ant Design Vue issue with Server Side Rendering. | 2023-11-08T09:05:23 | 2023-11-08T09:06:10 | {} | MEMBER |
vuejs | core | 1,803,237,113 | 8,682 | yyx990803 | This is a language tools issue - the error is no longer reproducible with latest versions of Vue and `vue-tsc`. | 2023-11-09T06:30:28 | 2023-11-09T06:30:28 | {} | MEMBER |
vuejs | core | 1,804,749,020 | 9,528 | basil | Those who are migrating away from Prototype might be interested in [a blog post](https://www.jenkins.io/blog/2023/05/12/removing-prototype-from-jenkins/) I wrote about this topic. It took the Jenkins project months to remove all usages of Prototype. | 2023-11-09T21:59:43 | 2023-11-09T21:59:43 | {} | NONE |
vuejs | core | 1,804,763,058 | 7,004 | sadeghbarati | Wow, look at those merges.. really appreciated that you kept it in sync with the main branch throughout the year
If Vue had auto-publish (`npm install vue-prs@fix-vmodel`) on PR branches that would be so helpful, not just for the maintainer but also for Vue users
Here is a proposal for PRs
- Explain PR and re... | 2023-11-09T22:11:53 | 2023-11-09T22:25:08 | {} | NONE |
vuejs | core | 1,805,514,841 | 7,338 | pikax | @sodatea I'll have a look and fix the regression | 2023-11-10T10:59:59 | 2023-11-10T10:59:59 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,806,718,863 | 9,581 | elcolie | @LinusBorg After I follow `> npm create vue@latest`
node: v20.9.0
OSX: Sonoma 14
Chrome is up to date
Version 119.0.6045.123 (Official Build) (arm64)
I got new problem.
```
Uncaught ReferenceError: Cannot access 'PostList' before initialization at Tag.vue:26:26
```
| 2023-11-11T06:47:42 | 2023-11-11T06:57:09 | {} | NONE |
vuejs | core | 1,803,123,742 | 9,574 | Alfred-Skyblue | The reason is that during the execution of the `render`, it triggered an `errorHandler`. Therefore, the reactive variables accessed within the `errorHandler` will also be collected by the `render` effect. Consequently, modifying reactive variables within the `errorHandler` will retrigger the `render` effect. However, a... | 2023-11-09T03:55:56 | 2023-11-09T03:55:56 | {
"eyes": 1
} | MEMBER |
vuejs | core | 1,803,141,124 | 8,763 | Justineo | > We cannot control users using this element to manipulate other behaviors.
Actually we are consistently telling users if they manipulate DOM elements manually, the Vue's rendering is likely to break. So should we try to fix holes that are not expected to be there in the first place? What if users move the element a... | 2023-11-09T04:22:51 | 2023-11-09T04:22:51 | {} | MEMBER |
vuejs | core | 1,803,731,770 | 8,065 | github-actions[bot] | ## Size Report
### Bundles
| File | Size | Gzip | Brotli |
| -------------------------- | ------- | ------- | ------- |
| runtime-dom.global.prod.js | 86.4 kB | 32.9 kB | 29.7 kB |
| vue.global.prod.js | 132 kB | 49.6 kB | 44.5 kB |
### Usages
| Name | Size |... | 2023-11-09T12:22:28 | 2023-11-09T12:22:28 | {} | NONE |
vuejs | core | 1,770,960,982 | 8,731 | github-actions[bot] | ## Size Report
### Bundles
| File | Size | Gzip | Brotli |
| -------------------------- | ------------------ | ------------------ | ------------------- |
| runtime-dom.global.prod.js | 86.4 kB (**-1 B**) | 32.9 kB (**-3 B**) | 29.7 kB (**-11 B**) |
| vue.... | 2023-10-19T13:11:15 | 2023-11-10T07:42:08 | {} | NONE |
vuejs | core | 1,805,322,479 | 8,929 | doutatsu | Amazing, thank you, can't wait to finally upgrade Tailwind 😭 | 2023-11-10T08:46:49 | 2023-11-10T08:46:49 | {} | NONE |
vuejs | core | 1,801,993,138 | 9,480 | sxzz | Please update your PR title. Seems this PR is not related to `compiler-sfc`. | 2023-11-08T14:24:36 | 2023-11-08T14:24:43 | {} | MEMBER |
vuejs | core | 1,802,238,529 | 7,030 | renatodeleao | Just hit this issue, exact as described by OP. I was going crazy over what the cause was. but eventually tracked it down to the watcher and the only funny part of this story is that I had this issue before (but router-related) and had a comment pointing to this and other related threads 😅
🤞 for the PR | 2023-11-08T16:26:12 | 2023-11-08T16:26:12 | {} | NONE |
vuejs | core | 1,803,124,140 | 9,571 | Kassell | > If you don't want to use the form of components, you can also encapsulate directives instead of manually modifying VNode or the el.
>
> [playground](https://play.vuejs.org/#eNp9U02PmzAQ/SsjXwApJYe9bZOV2iiHVv1SW6kXXwhMqDfGRv5gI0X57zu2gbDSKlyMZ55nnt8bX9invi8Hj+yRbWxtRO/AovP9E1ei67VxcIFhp9VRmA6ucDS6g6xcT6HS2ewjV1zVWl... | 2023-11-09T03:56:33 | 2023-11-09T03:56:33 | {} | NONE |
vuejs | core | 1,803,239,842 | 9,541 | yyx990803 | Closing as duplicate of #8465, tracking there | 2023-11-09T06:33:37 | 2023-11-09T06:33:37 | {} | MEMBER |
vuejs | core | 1,803,248,640 | 5,627 | yyx990803 | https://github.com/vuejs/core/issues/5626#issuecomment-1803248404 | 2023-11-09T06:42:46 | 2023-11-09T06:42:46 | {} | MEMBER |
vuejs | core | 1,805,497,301 | 9,528 | Sublime1 | Just adding a link for anyone interested to an [ongoing discussion ](https://github.com/prototypejs/prototype/issues/363) over on the Prototype.js github about the future of Prototype. Feel free to join in!
@basil thanks very much for that. It will come in handy to me one day, I'm sure! | 2023-11-10T10:49:09 | 2023-11-10T10:49:09 | {} | NONE |
vuejs | core | 1,801,225,257 | 9,567 | Justineo | Duplicate of #8780
Let's track the progress at #8780 | 2023-11-08T07:19:55 | 2023-11-08T07:19:55 | {} | MEMBER |
vuejs | core | 1,803,463,144 | 7,316 | github-actions[bot] | ## Size Report
### Bundles
| File | Size | Gzip | Brotli |
| -------------------------- | ------------------- | ------------------ | ------------------- |
| runtime-dom.global.prod.js | 86.4 kB (**+21 B**) | 32.9 kB (**+7 B**) | 29.7 kB (**+20 B**) |
| v... | 2023-11-09T09:27:15 | 2023-11-09T09:27:15 | {} | NONE |
vuejs | core | 1,805,104,311 | 7,490 | yyx990803 | #7476 really is more of a specific case for `indeterminate` since `<input type="checkbox" indeterminate>` works in CSR due to the runtime `patchProps` logic, so we have to special case it to make it consistent in SSR. This is done in 34b5a5da4
The intention of this PR makes sense, but there are two problems:
1. `... | 2023-11-10T05:20:37 | 2023-11-10T05:24:56 | {} | MEMBER |
vuejs | core | 1,702,184,490 | 8,012 | github-actions[bot] | ## Size Report
### Bundles
| File | Size | Gzip | Brotli |
| -------------------------- | ------- | ------- | ------- |
| runtime-dom.global.prod.js | 86.4 kB | 32.9 kB | 29.7 kB |
| vue.global.prod.js | 132 kB | 49.6 kB | 44.5 kB |
### Usages
| Name | Size |... | 2023-09-01T05:27:09 | 2023-11-10T07:12:02 | {} | NONE |
vuejs | core | 1,805,502,988 | 7,338 | haoqunjiang | This PR seems to have caused a regression in `test-utils` types:
https://github.com/vuejs/ecosystem-ci/actions/runs/6822057901/job/18553448341#step:7:3107 | 2023-11-10T10:53:29 | 2023-11-10T10:53:29 | {} | MEMBER |
vuejs | core | 1,515,815,902 | 8,104 | yyx990803 | - `InstanceType` 大概率不会支持,引入的类型复杂度过高。
- `ExtractPropTypes` 也不会支持,因为 `ExtractPropTypes` 意味着你也能拿到运行时 props 定义,直接用那个就行
比如
```ts
import type { InputProps } from "element-plus";
defineProps<InputProps>()
```
这里 `InputProps` 实际上是 `ExtractPropTypes<typeof inputProps>`,没有必要绕一圈,直接这样就满足你的需求了:
```ts
import { inputProps... | 2023-04-20T07:04:02 | 2023-04-20T07:04:02 | {} | MEMBER |
vuejs | core | 1,521,192,218 | 8,147 | wht300 | > I believe this is a problem with .`useTemplateRefsList`
>
> https://github.com/vueuse/vueuse/blob/main/packages/core/useTemplateRefsList/index.ts
>
> `useTemplateRefsList` is relying on to reset the array, but that won't be called when the template ref is used inside a slot.`onBeforeUpdate`
>
> Using to rese... | 2023-04-25T05:57:47 | 2023-04-25T05:57:47 | {} | NONE |
vuejs | core | 1,522,076,487 | 8,153 | LinusBorg | This is by design.
when only the slot depends on a reactive value, then only the child component consuming the slot actually needs to re-render, not the parent. This has significant perfomance advantages. The logical consequence is that in such scenarios, `beforeUpdate` and `updated` hooks in the parent are not call... | 2023-04-25T16:20:53 | 2023-04-25T16:21:21 | {} | MEMBER |
vuejs | core | 1,522,903,876 | 8,159 | yangxiuxiu1115 | This is an expected outcome. It can't be considered a bug. | 2023-04-26T07:14:23 | 2023-04-26T07:14:48 | {} | CONTRIBUTOR |
vuejs | core | 1,523,026,167 | 8,159 | yangxiuxiu1115 | Maybe you can use it this way.
```
export default defineComponent({
data() {
const metadata = {
options: [
{name: 'Tony', value: 'tony'},
{name: 'Loki', value: 'loki'}
]
}
return {
metadata,
selectedOne: metadata.options[0]
}
}
})
``` | 2023-04-26T08:49:30 | 2023-04-26T08:49:30 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 1,516,319,723 | 7,542 | mikemklee | Also being blocked by this while trying to migrate a codebase from Vue 2 to Vue 3.
Most of the existing snapshot tests are breaking because of a couple whitespaces missing. | 2023-04-20T13:21:50 | 2023-04-20T13:21:50 | {} | NONE |
vuejs | core | 1,519,452,663 | 8,141 | LinusBorg | We require Issues to come with a reproduction. We can reopen once one has been provided. | 2023-04-24T06:20:01 | 2023-04-24T06:20:01 | {} | MEMBER |
vuejs | core | 1,521,425,003 | 8,147 | wht300 | > @wht300 if you don't use `refs.length`, will there still be this problem?Is this `refs.length` really necessary to use?
I think so.
In some business scenarios
when I call the expose method of a v-for-generated component via refs traversal, the
```
// Pseudocode, refs are generated from list v-for
const list=[... | 2023-04-25T08:57:42 | 2023-04-25T08:57:42 | {} | NONE |
vuejs | core | 1,521,524,993 | 8,152 | Shyam-Chen | ```ts
interface Props {
propF?: 'success' | 'warning' | 'danger';
}
``` | 2023-04-25T10:07:24 | 2023-04-25T10:09:48 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 1,521,844,941 | 8,152 | Alfred-Skyblue | > `defineProps()`实际上是一个 Composition API。 我不明白你的意思。
He may want to use the interface to validate props. | 2023-04-25T14:01:52 | 2023-04-25T14:01:52 | {} | MEMBER |
vuejs | core | 1,523,428,731 | 5,525 | madsh93 | > Also spent a bit of time on this, the way it works for me:
>
> ```
> <script setup>
> const elRefs = reactive([]);
>
> function updateRefs(el) {
> elRefs[index] = el;
> }
> </script>
>
> <template>
> <div>
> <div v-for="i in 5" :key="i" :ref="updateRefs">
> {{ i }}
> </div>
> </di... | 2023-04-26T13:30:50 | 2023-04-26T13:30:50 | {} | NONE |
vuejs | core | 1,524,185,946 | 7,412 | dacohen | This would be extremely helpful, and solve a major source of confusion when using custom elements. What (if any) blockers are there to merging this? | 2023-04-26T23:27:51 | 2023-04-26T23:27:51 | {} | NONE |
vuejs | core | 1,515,927,063 | 8,104 | yyx990803 | 如果 `ElInput.props` 有对应类型,那么 `defineProps` 也会有类型。你的编辑器没有提示是因为 `ElInput.props` 是 any,照我的例子用 `inputProps` 就行了。 | 2023-04-20T08:24:41 | 2023-04-20T08:24:41 | {} | MEMBER |
vuejs | core | 1,516,643,905 | 4,339 | wf-soft | 这个问题可真是如鲠在喉,对移动端很多网站来说这是重大缺陷,如今很多都是滚动加载的页面,谁能接受他回不去,网站都写完了才发现这个问题。。而且nuxt3的NuxtPage对keepalive包含排除还有BUG,还不能用原生的路由替换,默契配合超级加倍 | 2023-04-20T16:46:08 | 2023-04-20T17:48:38 | {
"+1": 2
} | NONE |
vuejs | core | 1,178,122,499 | 5,513 | AwesomeDude091 | Because I have this issue as well, I just do not want to create a duplicate issue | 2022-07-07T19:28:36 | 2023-04-21T08:18:56 | {} | NONE |
vuejs | core | 1,521,269,211 | 4,733 | lehni | BTW I find `asArray()` generally useful and would allow it any argument types, nut just VNodes | 2023-04-25T07:14:29 | 2023-04-25T07:14:29 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 1,521,604,923 | 8,152 | Alfred-Skyblue | See https://vuejs.org/api/sfc-script-setup.html#typescript-only-features | 2023-04-25T11:08:03 | 2023-04-25T11:08:03 | {} | MEMBER |
vuejs | core | 1,521,885,723 | 8,152 | jacekkarczmarczyk | deafult values are also runtime only, but it's possible to set them when you're using ts version of defineProps | 2023-04-25T14:26:14 | 2023-04-25T14:26:14 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 1,523,055,263 | 8,159 | soorajsprakash | Ok thnx @RicardoErii , will try this out. But if i want to access those properties, from outside, say from the template, how can i do that?
Also can you share reference so that I can read more on this? | 2023-04-26T09:06:22 | 2023-04-26T09:06:22 | {} | NONE |
vuejs | core | 1,519,094,153 | 8,141 | a137264832 | my result is ok. i think maybe,it's TypeScript issue.
| 2023-04-23T15:33:28 | 2023-04-23T15:33:28 | {} | NONE |
vuejs | core | 1,520,996,804 | 8,146 | yyx990803 | > @https://github.com/posva
Do NOT at people like this. If someone has the bandwidth to handle this issue, they will. | 2023-04-25T00:35:33 | 2023-04-25T00:35:33 | {
"+1": 15,
"-1": 2
} | MEMBER |
vuejs | core | 1,521,400,908 | 8,135 | yyx990803 | I'm a bit conservative about supporting `InstanceType` because:
1. I don't really see any reason for users to declare prop types using classes
2. The implementation here is quite incomplete - it doesn't cover cases like the following:
```ts
class Foo {
a = 1
b: string // no value, just type annoatation (s... | 2023-04-25T08:39:18 | 2023-04-25T08:40:05 | {} | MEMBER |
vuejs | core | 1,521,536,367 | 8,147 | wht300 | After reviewing the code, I now think it should be a lifecycleupdate issue, so I've re-raised an issue
look https://github.com/vuejs/core/issues/8153 | 2023-04-25T10:16:42 | 2023-04-25T10:16:42 | {} | NONE |
vuejs | core | 1,525,378,877 | 7,706 | Jevon617 | During HMR reload, the div element is unmounted. However, in SSR mode, the mountComponent process does not remount the div element but hydrates it instead, causing the issue of the div element being deleted. | 2023-04-27T10:16:24 | 2023-04-27T10:16:24 | {} | NONE |
vuejs | core | 1,526,930,611 | 8,180 | qmhc | Maybe this behavior is expected, see https://vuejs.org/guide/essentials/computed.html#computed-caching-vs-methods.
If so, you can close this issue. | 2023-04-28T03:24:09 | 2023-04-28T03:24:09 | {} | NONE |
vuejs | core | 1,516,080,659 | 8,104 | pangao66 | 还是希望能支持 props 可以同时支持 运行时props和类型辅助一起写, 有些简单的组件, 如果只在当前.vue文件中定义了props而没有export 出来, 那么外面继承则无法准确推导出来
加入我有一个简单的组件
```
const props = defineProps<{msg:string}>();
```
或
```
const props = defineProps({
msg: {
type: String,
},
});
```
如果他 这些定义只在当前文件中而没有export, 那么想继承props并实现类型提示就非常困难了,使用的时候无法得到ts提示
```vu... | 2023-04-20T10:18:31 | 2023-04-20T10:25:56 | {} | NONE |
vuejs | core | 1,518,772,943 | 4,294 | dvjeshka | how to import interfaсe for defineEmits? | 2023-04-22T20:30:41 | 2023-04-22T20:30:55 | {} | NONE |
vuejs | core | 1,521,074,224 | 8,140 | yyx990803 | FYI this specific case should fallback to skipping runtime check without an error with latest `main` branch after 2d9f6f92 - that said project references are indeed not supported at the moment. | 2023-04-25T02:33:07 | 2023-04-25T02:33:07 | {} | MEMBER |
vuejs | core | 1,521,100,281 | 1,866 | brightchip | Okay.. You can still use mixins like this :
```
mixins:[rootLayoutMixin],
setup(props){
return { ...othersetups, ...rootLayoutMixin.setup(props) }
},
``` | 2023-04-25T03:14:51 | 2023-04-25T03:45:58 | {
"hooray": 2
} | NONE |
vuejs | core | 1,521,470,876 | 8,147 | wht300 | > I don't see a Vue bug here. Using `:ref` with a function, the function will be called every time it re-renders. The function needs to take account of the case where the passed element or component hasn't changed. `useTemplateRefsList` isn't doing that.
>
> The changes in 3.2.25 make `useTemplateRefsList` redundant... | 2023-04-25T09:29:34 | 2023-04-25T09:30:26 | {} | NONE |
vuejs | core | 1,525,684,285 | 4,662 | s3fs | Hi @yyx990803 @LinusBorg @sodatea. Should we by any chance expect a fix anytime soon? Some info would be much appreciated. | 2023-04-27T13:19:14 | 2023-04-27T13:19:14 | {
"+1": 10
} | NONE |
vuejs | core | 1,525,710,532 | 4,662 | ankitsinghaniyaz | I've upgraded from vue2 to vue3 and now I'm waiting for this feature to work desperately. | 2023-04-27T13:36:39 | 2023-04-27T13:36:39 | {
"+1": 7
} | NONE |
vuejs | core | 1,517,528,930 | 4,404 | MarcinKarpeta | Any update on this? any chance we will see this in official package? | 2023-04-21T09:14:55 | 2023-04-21T09:14:55 | {
"+1": 8
} | NONE |
vuejs | core | 1,518,922,057 | 7,343 | favorite58 | 这个问题现在有没有解决方式,我的项目也出现了? | 2023-04-23T02:22:18 | 2023-04-23T02:22:18 | {
"+1": 3
} | NONE |
vuejs | core | 1,519,531,530 | 8,141 | eshengsky | @LinusBorg I've update an online demo in details, and I found that it seems a case problem, I'm not sure if this is by design. | 2023-04-24T07:27:58 | 2023-04-24T07:27:58 | {} | NONE |
vuejs | core | 1,521,132,176 | 8,147 | skirtles-code | I believe this is a problem with `useTemplateRefsList`.
<https://github.com/vueuse/vueuse/blob/main/packages/core/useTemplateRefsList/index.ts>
`useTemplateRefsList` is relying on `onBeforeUpdate` to reset the array, but that won't be called when the template ref is used inside a slot.
Using `onBeforeUpdate` t... | 2023-04-25T04:14:47 | 2023-04-25T04:14:47 | {} | CONTRIBUTOR |
vuejs | core | 1,523,061,881 | 8,159 | yangxiuxiu1115 | ohh,You can use it normally.
[like this](https://play.vuejs.org/#eNptUrFOwzAQ/ZVTlqRSlcJapRWoKxILW81gEre16pyj5FKBLC8sfBPiexC/ge04TYZ6sd/du+d3Z5vksWnySy+SdVJ0ZSsbAsXxuGEJdSzZMpR1o1sCA5U4SBQ77TAKJLBwaHUNqStOGTIU74HoaLxXYZ/TM8MQoOLEswWEM0CpsSOoBXEfh80Y90s3JF16DfspBmCQ12IN6YvGj3QJF656D8lDu7zFfNJnOWMqD+1EfB2PMdYK6lucjIzmrt... | 2023-04-26T09:10:32 | 2023-04-26T09:10:32 | {} | CONTRIBUTOR |
vuejs | core | 1,523,289,330 | 5,952 | Willadaygo | Nudge nudge 🥲? | 2023-04-26T11:53:45 | 2023-04-26T11:53:45 | {} | NONE |
vuejs | core | 1,520,786,875 | 8,149 | sadeghbarati | #2981 | 2023-04-24T20:30:07 | 2023-04-24T20:30:07 | {} | NONE |
vuejs | core | 1,521,396,550 | 8,147 | zaqvil | @wht300 if you don't use `refs.length`, will there still be this problem?Is this `refs.length` really necessary to use? | 2023-04-25T08:35:58 | 2023-04-25T08:35:58 | {} | NONE |
vuejs | core | 1,523,358,427 | 5,952 | brunodeangelis | No disrespect to Vue maintainers, but I just find amazing that it's been a year since this PR was posted and there are no signs of merging yet. This bug **heavily** impacts the biggest and most used Vue framework, Nuxt 3, and makes it a huge pain to deal with what would be an otherwise excellent DX (and UX for that mat... | 2023-04-26T12:44:16 | 2023-04-26T12:44:16 | {
"+1": 2,
"confused": 14
} | NONE |
vuejs | core | 1,523,930,038 | 8,164 | danielroe | @sqal Thanks! ❤️ | 2023-04-26T19:23:53 | 2023-04-26T19:23:53 | {} | MEMBER |
vuejs | core | 1,516,062,980 | 8,083 | pangao66 | @Hccake
```vue
<script setup lang="ts">
import inputProps from "ant-design-vue/es/input/inputProps";
defineProps(inputProps());
</script>
```
do like this without wait for 3.3 | 2023-04-20T10:04:47 | 2023-04-20T10:04:59 | {} | NONE |
vuejs | core | 1,520,509,112 | 8,147 | zaqvil | I don't think you should use `refs.length`,but rather use `list.length`.`refs.length` and `refs.set` will loop until the maximum number of updates are reached. | 2023-04-24T16:48:29 | 2023-04-24T16:48:29 | {} | NONE |
vuejs | core | 1,520,677,619 | 8,149 | sadeghbarati | ```ts
import { createApp, shallowRef, toRaw, markRaw } from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js'
class Foo {
#bar = 1;
get bar() {
return this.#bar;
}
}
createApp({
data() {
return {
foo: shallowRef(new Foo()) // or toRaw, but it's loses reactivity 🫠
}
},
mounted() {
... | 2023-04-24T19:03:07 | 2023-04-24T19:45:58 | {} | NONE |
vuejs | core | 1,521,449,175 | 8,147 | skirtles-code | I don't see a Vue bug here. Using `:ref` with a function, the function will be called every time it re-renders. The function needs to take account of the case where the passed element or component hasn't changed. `useTemplateRefsList` isn't doing that.
The changes in 3.2.25 make `useTemplateRefsList` redundant anywa... | 2023-04-25T09:13:53 | 2023-04-25T09:13:53 | {} | CONTRIBUTOR |
vuejs | core | 1,522,935,508 | 8,158 | max512060925 | > If you want to use JSX syntax in SFC, you should use the corresponding plugin.
I have use @vitejs/plugin-vue-jsx
my vite.config
```javascript
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
export default defineConfig({
plugins: [
... | 2023-04-26T07:41:32 | 2023-04-26T07:43:10 | {} | NONE |
vuejs | core | 1,526,926,085 | 8,177 | Shyam-Chen | https://vue-macros.sxzz.moe/macros/short-vmodel.html | 2023-04-28T03:16:57 | 2023-04-28T03:16:57 | {} | CONTRIBUTOR |
vuejs | core | 1,150,887,414 | 4,662 | Hobart2967 | +1 Urgently need this too! | 2022-06-09T09:25:51 | 2023-04-28T03:25:33 | {} | NONE |
vuejs | core | 1,161,171,215 | 4,662 | kenny-lee-1992 | +1 | 2022-06-21T03:03:45 | 2023-04-28T03:25:44 | {} | NONE |
vuejs | core | 1,520,472,047 | 5,513 | zkulbeda | I checked reproduction in the description with vue v3.3.0-beta.1. I added prop `suspensible` to `<suspense>` in `ParentAsync.vue`. Still, there was two mounts of async child.
See [https://play.vuejs.org/](https://play.vuejs.org/#eNrFVllu2zAQvcpAP3ZQWXKRP8NJE+QCQRL0JyoCWaIjJhIpkJSdwPANCvQAvUjP0wv0Ch0uWu24SdEFhmFz+GbhzP... | 2023-04-24T16:18:43 | 2023-04-24T16:18:43 | {
"+1": 1
} | NONE |
vuejs | core | 1,523,020,282 | 8,159 | soorajsprakash | @RicardoErii Ohh, my bad. But then, as in this example, how can i get the expected outcome?
As in, set another data property "selectedOne" as "this.metadata.options[0]"? | 2023-04-26T08:44:58 | 2023-04-26T08:44:58 | {} | NONE |
vuejs | core | 1,523,542,681 | 7,329 | 1581433801 | Has the problem been resolved? | 2023-04-26T14:42:29 | 2023-04-26T14:42:29 | {} | NONE |
vuejs | core | 1,524,329,433 | 7,329 | sxzz | Fixed in [v3.3.0-alpha.6](https://github.com/vuejs/core/releases/tag/v3.3.0-alpha.6).
`@esbuild-plugins/node-modules-polyfill` is a dev dep and won't affect in userland. | 2023-04-27T00:54:44 | 2023-04-27T00:54:44 | {
"+1": 4,
"heart": 1,
"hooray": 2,
"rocket": 1
} | MEMBER |
vuejs | core | 1,516,261,785 | 8,083 | Hccake | > @Hccake
>
> ```
> <script setup lang="ts">
> import inputProps from "ant-design-vue/es/input/inputProps";
> defineProps(inputProps());
> </script>
> ```
>
> do like this without wait for 3.3
The problem is not how to implement it, but that this change will cause existing code to be unable to upgrade smo... | 2023-04-20T12:43:06 | 2023-04-20T12:43:06 | {} | NONE |
vuejs | core | 1,520,685,884 | 8,149 | sadeghbarati | https://vuejs.org/guide/essentials/reactivity-fundamentals.html#reactive-proxy-vs-original | 2023-04-24T19:07:58 | 2023-04-24T19:07:58 | {
"+1": 1
} | NONE |
vuejs | core | 1,521,009,456 | 8,149 | yyx990803 | In order for Vue to properly track property access inside object / class instance methods, `this` inside these methods must also be the wrapped proxy. However, `this` being the proxy instead of the original object prevents us from reading private fields.
If we use the original object as `this` inside methods, then i... | 2023-04-25T00:47:28 | 2023-04-25T00:47:28 | {
"+1": 3
} | MEMBER |
vuejs | core | 1,521,848,687 | 8,152 | edison1105 | @Alfred-Skyblue
that's impossible. prop's validator is a runtime-only check. | 2023-04-25T14:03:59 | 2023-04-25T14:03:59 | {} | MEMBER |
vuejs | core | 1,521,998,103 | 8,153 | wht300 | > ```ts
> watchEffect(() => {
> console.log(countOnSlot.value, countOnDiv.value);
> });
> ```
Hi, the focus of the problem is not to get the value of `countOnSlot `or `countOnSlot`. The point should be that the inconsistent behavior of the `onBeforeUpdate `or `onUpdated `hooks in `slots `and regular `HTMLEleme... | 2023-04-25T15:26:24 | 2023-04-25T15:26:24 | {} | NONE |
vuejs | core | 1,522,906,023 | 8,158 | yangxiuxiu1115 | If you want to use JSX syntax in SFC, you should use the corresponding plugin. | 2023-04-26T07:16:17 | 2023-04-26T07:16:17 | {} | CONTRIBUTOR |
vuejs | core | 1,524,363,439 | 7,329 | ice1000 | Nice!! | 2023-04-27T01:14:42 | 2023-04-27T01:14:42 | {
"heart": 1
} | NONE |
vuejs | core | 1,526,596,581 | 7,804 | oddcelot | Just stumbled upon the generics today (and am kinda excited 😄 )
Having also a trouble with the typing on the props, although they are typed correctly in the SFC template part.
It seems that the type magic in this declaration is causing some problems
(just did a quick check by replacing with `export declare fun... | 2023-04-27T22:09:13 | 2023-04-27T22:09:13 | {} | NONE |
vuejs | core | 1,526,927,720 | 8,179 | Shyam-Chen | https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue-jsx | 2023-04-28T03:19:28 | 2023-04-28T03:19:28 | {} | CONTRIBUTOR |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.