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,743,902,850 | 9,233 | matej-svejda | @Alfred-Skyblue I see, I guess that makes sense from a technical perspective. I'm not sure it's great from an API usage point of view, but I also don't see how to easily improve that.
@edison1105 I had vue-devtools turned off. | 2023-10-02T23:15:27 | 2023-10-02T23:15:27 | {} | NONE |
vuejs | core | 1,751,986,857 | 7,908 | benjaminrobinet | Upvote this issue, I still reproduce using latest Vue version. | 2023-10-08T10:21:39 | 2023-10-08T10:21:39 | {
"+1": 26
} | NONE |
vuejs | core | 1,732,326,792 | 9,280 | haoqunjiang | Syncing our private discussions here:
- This is a known bug in Chrome < 74 that spread operator + Proxy doesn't behave correctly https://bugs.chromium.org/p/chromium/issues/detail?id=960744
- There isn't much we can do in Vue.js core to work around this bug
- `Object.assign` seems to work correctly.
- So the most ... | 2023-09-23T14:10:03 | 2023-10-08T15:18:52 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,754,555,807 | 7,876 | zhangyuang | I'm having the same problem. I hope there can be an option here to decide whether to throw an error or not. | 2023-10-10T07:12:20 | 2023-10-10T07:12:20 | {
"+1": 4
} | CONTRIBUTOR |
vuejs | core | 1,754,920,373 | 8,346 | Simon-He95 | > rgb works, but rgba still doesn't work, what's wrong?
>
> ```js
> <script setup>
> const color = '255 0 0'
> </script>
>
> <template>
> <div class="headline">Headline</div>
> </template>
>
> <style lang="scss">
> .headline {
> // works:
> color: v-bind('`rgb(${color})`');
>
> // doesn't wo... | 2023-10-10T10:25:00 | 2023-10-10T10:25:00 | {
"+1": 2
} | CONTRIBUTOR |
vuejs | core | 1,755,301,077 | 8,752 | Jeff-Tian | I don't understand the `lint-and-test-dts` yet, but I will study it tomorrow. 😂 | 2023-10-10T12:32:28 | 2023-10-10T12:32:28 | {} | CONTRIBUTOR |
vuejs | core | 1,740,548,603 | 8,635 | gsmetal | We have the same problem with hyphen in types. You can see the error in [minimal example on playground](https://play.vuejs.org/#eNqNUk1PwzAM/StWLmXStgrtVrpJgCYBB5iAYy5V53YdbRLlYwxV+e84Get2gIlb7Pf8/GynZ7dKTXcOWcZyU+pGWTBonYK2EPWcM2s4W3DRdEpqC/eyU1Bp2UEyTUMQSpMbLrjI00M5kSmw2Km2sEgRQB7Lss4EweQB21YmpJpHBWLk6UBnY+pYSlE19XRr... | 2023-09-29T08:59:17 | 2023-09-29T08:59:17 | {} | NONE |
vuejs | core | 1,741,789,414 | 7,259 | so1ve | Try `vue-component-type-helpers` | 2023-09-30T15:25:01 | 2023-09-30T15:25:01 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,744,324,531 | 9,328 | vercel[bot] | [vc]: #l23+/3BH+hefi8n0RS7LbT1g4vhkDja8MBoVYIb8nmc=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC84aXZxZFd5Uk1BUW5yeDNhYkZTMlc4RTFMallHIiwibmV4dENvbW1pdFN0YXR1cyI6IklHTk9SRUQiLCJyb290RGlyZWN0b3J5... | 2023-10-03T07:00:50 | 2023-10-03T07:04:42 | {} | NONE |
vuejs | core | 1,751,660,810 | 9,350 | github-actions[bot] | ## Size Report
### Bundles
| File | Size | Gzip | Brotli |
| -------------------------- | -------------------- | ------------------- | ------------------- |
| runtime-dom.global.prod.js | 86.1 kB (**+198 B**) | 32.7 kB (**+56 B**) | 29.5 kB (**+59 B**)... | 2023-10-07T09:15:16 | 2023-10-07T09:15:16 | {} | NONE |
vuejs | core | 1,751,959,142 | 9,348 | sadeghbarati | I think he wants to use **Vue events** like `@click` inside the `v-if` and `v-else` block
@amirhossein-fzl See this playground, Also this is not the best practice to do something like this
#### [SFC playground](https://play.vuejs.org/#eNrFVdGO2jgU/RVvXmC04JDAUsEyiN1uV2q10662aB/a9CGTmMQzjh3ZDmWE+Pde2wEMZdCoL53RZ... | 2023-10-08T08:20:00 | 2023-10-09T08:34:06 | {} | NONE |
vuejs | core | 1,755,272,934 | 9,368 | edison1105 | thanks for the PR but this is not the proper fix.
see https://github.com/vuejs/core/pull/9370#issue-1935191235 | 2023-10-10T12:23:05 | 2023-10-10T12:23:05 | {
"+1": 2
} | MEMBER |
vuejs | core | 1,740,357,176 | 9,316 | lvjiaxuan | Visual Regex:
https://jex.im/regulex/#!flags=&re=(%3F%3A%5E%5B%5Cs%5C(%5D*(%3F%3A(%3F%3Aasync%5Cs*)%3F(%3F%3A%5B%5Cw%24_%5D%2B%7C%5C(%5B%5E)%5D*%3F%5C))%5Cs*(%3F%3A%3A%5B%5E%3D%5D%2B)%3F%3D%3E%7C(%3F%3Aasync%5Cs%2B)%3Ffunction(%3F%3A%5Cs%2B%5B%5Cw%24_%5D%2B)%3F%5Cs*%5C(%5B%5E)%5D*%3F%5C)%5Cs*(%3F%3A%3A%5B%5E%3D%5D%2B)... | 2023-09-29T06:05:58 | 2023-09-29T06:05:58 | {} | NONE |
vuejs | core | 1,742,343,442 | 9,324 | github-actions[bot] | ## Size Report
### Bundles
| File | Size | Gzip | Brotli |
| -------------------------- | ------- | ------- | ------- |
| runtime-dom.global.prod.js | 85.9 kB | 32.6 kB | 29.5 kB |
| vue.global.prod.js | 132 kB | 49.3 kB | 44.4 kB |
### Usages
| Name | Size |... | 2023-10-02T03:07:21 | 2023-10-02T03:07:21 | {} | NONE |
vuejs | core | 1,746,251,641 | 9,329 | WORMSS | Oh, this is weird, now that I have refreshed, it's no longer doing it my end either..
I will keep this open for a little while since it seems to be an intermittent thing and I obviously thought I caught the reason for it, but it's obviously deeper than that..
If I don't see it again after significant usage, I will ... | 2023-10-04T06:57:10 | 2023-10-04T06:57:10 | {} | NONE |
vuejs | core | 1,751,966,662 | 8,152 | haoqunjiang | I'm closing this issue because it's more like a question than a feature request.
There are very insightful discussions in the previous comments, though. If you have any more specific concerns or ideas, please consider [opening an RFC discussion](https://github.com/vuejs/rfcs/discussions) to discuss the specific design... | 2023-10-08T08:52:45 | 2023-10-08T08:52:45 | {} | MEMBER |
vuejs | core | 1,751,979,953 | 9,355 | github-actions[bot] | ## Size Report
### Bundles
| File | Size | Gzip | Brotli |
| -------------------------- | ------- | ------- | ------- |
| runtime-dom.global.prod.js | 85.9 kB | 32.6 kB | 29.5 kB |
| vue.global.prod.js | 132 kB | 49.3 kB | 44.4 kB |
### Usages
| Name | Size |... | 2023-10-08T09:50:35 | 2023-10-08T09:50:35 | {} | NONE |
vuejs | core | 1,752,097,447 | 9,358 | skirtles-code | It isn't clear to me from the code provided that this is a Vue bug.
If you're looking for help with migrating your code then you could try [GitHub Discussions](https://github.com/vuejs/core/discussions) or the [Vue Discord server](https://chat.vuejs.org/). This issues list is for reporting problems with Vue itself.
... | 2023-10-08T16:20:46 | 2023-10-08T16:20:46 | {} | CONTRIBUTOR |
vuejs | core | 1,752,929,063 | 9,348 | michaelpumo | This is happening because the content rendered on the server-side with Nuxt is not what is initially rendered on the client-side.
Since your component for the switch uses `useDark()` which in turns uses localStorage, it will always be light mode on the server and dark mode on the client (if it was selected).
You ... | 2023-10-09T12:35:09 | 2023-10-09T12:35:09 | {
"+1": 1
} | NONE |
vuejs | core | 1,754,852,068 | 8,346 | tygliu | rgb works, but rgba still doesn't work, what's wrong?
```javascript
<script setup>
const color = '255 0 0'
</script>
<template>
<div class="headline">Headline</div>
</template>
<style lang="scss">
.headline {
// works:
color: v-bind('`rgb(${color})`');
// doesn't work:
color: v-bind('`rgb... | 2023-10-10T09:53:24 | 2023-10-10T09:54:57 | {} | NONE |
vuejs | core | 1,740,615,792 | 6,732 | jd-solanki | Can we get this in upcoming release, We have enough upvotes in the issue to consider it
| 2023-09-29T09:49:00 | 2023-09-29T09:49:19 | {} | NONE |
vuejs | core | 1,741,627,299 | 9,316 | lvjiaxuan | @skirtles-code Thanks for your reply!
The use case for parentheses is somewhat like [this](https://play.vuejs.org/#eNqlUstOwzAQ/JWVL2mlKhx6q9qKh3qAAyDg6EuUbkKKs7b8CK2i/DtrhxaEql442bszO55ZuRc3xuRdQLEQS1faxnhw6IMBVVC9ksI7KdaSmtZo66EHixUMUFndQsZjmSRJpSbnoSsUrCI+ybKppOXVKMfDXHhsjSo8cgWwbMgED9fp4Dcm2MFq/S2AXe4LW6PPuQ44hc... | 2023-09-30T01:56:58 | 2023-09-30T01:56:58 | {} | NONE |
vuejs | core | 1,742,318,186 | 8,743 | so1ve | @dten This issue should be fixed in latest version of volar. | 2023-10-02T02:22:21 | 2023-10-02T02:22:21 | {} | MEMBER |
vuejs | core | 1,745,201,983 | 5,912 | johnsoncodehk | @basvanmeurs Thanks for your help with the review! This is the benchmark result of 3.3.4 and PR: [benchmarks.zip](https://github.com/vuejs/core/files/12794017/benchmarks.zip)
I'm a little busy at the moment and will respond to the problems you proposed later.
I did more optimizations after the last comment and now ... | 2023-10-03T15:20:48 | 2023-10-03T20:08:27 | {} | MEMBER |
vuejs | core | 1,750,648,666 | 5,865 | pikax | No longer valid | 2023-10-06T13:05:21 | 2023-10-06T13:05:21 | {} | MEMBER |
vuejs | core | 1,739,506,071 | 8,594 | Heniker | Well, given **that**, the following code does something illegal -
```js
const app = v.createApp(
v.defineComponent({
setup() {
const instance = v.getCurrentInstance()
setTimeout(() => {
console.log(instance === app._instance) // true
})
},
})
)
app.mount('#app')
```
... | 2023-09-28T15:17:02 | 2023-09-29T02:48:32 | {} | NONE |
vuejs | core | 1,744,282,076 | 8,012 | vercel[bot] | [vc]: #L1ujxZ4jhSRUZ7kwGGGPi+hJ5Qp9iZHK85nN/ehILg0=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsInJvb3REaXJlY3RvcnkiOiJwYWNrYWdlcy9zZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC9CcmFFd2p1bWdOUEhxY2dlQjltcmh4dDFjTEhFIiwi... | 2023-10-03T06:21:07 | 2023-10-03T06:21:11 | {} | NONE |
vuejs | core | 1,750,507,554 | 7,114 | oceangravity | > hey! any update on getting this change rolled out? 😅
>
> it's still a pain to deal with this bug, and the fix looks good to go 😸
It seems like the core team is waiting for the release of Vapor mode.
🙄 | 2023-10-06T11:48:48 | 2023-10-06T11:48:48 | {
"+1": 1
} | NONE |
vuejs | core | 1,750,736,364 | 5,408 | github-actions[bot] | ## Size Report
### Bundles
| File | Size | Gzip | Brotli |
| -------------------------- | ------- | ------- | ------- |
| runtime-dom.global.prod.js | 85.9 kB | 32.6 kB | 29.5 kB |
| vue.global.prod.js | 132 kB | 49.3 kB | 44.4 kB |
### Usages
| Name | Size |... | 2023-10-06T14:03:57 | 2023-10-06T14:03:57 | {} | NONE |
vuejs | core | 1,750,882,306 | 9,348 | Justineo | Please provide a *minimal* reproduction (no Nuxt and other external libraries) and take the time to describe your issue. | 2023-10-06T15:19:25 | 2023-10-06T15:19:25 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,743,882,761 | 9,323 | vercel[bot] | [vc]: #MkPBSO34HNmbCi8hdEti94LgwolDZbSoMN5V/LhkIKc=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJzZmMtcGxheWdyb3VuZCIsInJvb3REaXJlY3RvcnkiOiJwYWNrYWdlcy9zZmMtcGxheWdyb3VuZCIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92dWVqcy9zZmMtcGxheWdyb3VuZC9CaWg5elRlQkdUTHlLMWpKcnllYzhNQTNLRjVLIiwi... | 2023-10-02T22:54:21 | 2023-10-02T22:54:24 | {} | NONE |
vuejs | core | 1,751,542,750 | 9,346 | edison1105 | try https://github.com/vuejs/core/issues/5256#issuecomment-1173723516 | 2023-10-07T01:15:41 | 2023-10-07T01:15:41 | {} | MEMBER |
vuejs | core | 1,751,938,710 | 4,339 | Harmaccor | need this feature | 2023-10-08T06:42:50 | 2023-10-08T06:42:50 | {} | NONE |
vuejs | core | 1,752,096,647 | 9,347 | haoqunjiang | There's no built-in solution. But this plugin with some customization seems to work:
https://www.npmjs.com/package/vite-plugin-css-injected-by-js
```js
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js";
// https://vite... | 2023-10-08T16:16:59 | 2023-10-08T16:16:59 | {} | MEMBER |
vuejs | core | 1,752,513,329 | 8,900 | FreshRob | Following this, with the extra logging, we also saw some users using tools to translate from English to another language which then also causes a mismatch, without this extra logging it wouldn't of been possible to figure that out. | 2023-10-09T07:59:24 | 2023-10-09T07:59:24 | {
"+1": 1
} | NONE |
vuejs | core | 1,752,969,815 | 9,346 | edison1105 | This is a Chrome bug. see https://bugs.chromium.org/p/chromium/issues/detail?id=1213045
remove `loading="lazy"` and there will be no memory leak.
```diff
<img :src="src" :title="alt" loading="lazy" />
+<img :src="src" :title="alt"/>
``` | 2023-10-09T13:01:05 | 2023-10-09T13:01:05 | {} | MEMBER |
vuejs | core | 1,754,438,726 | 4,318 | johnsoncodehk | Hi! I have a very similar idea and have done a very basic PoC in https://github.com/johnsoncodehk/core/pull/14 and can already see a 20x faster performance improvement.
I'm just throwing this out there because making this work completely would require a lot more careful work that I don't have the time for at the mom... | 2023-10-10T05:55:16 | 2023-10-10T05:55:16 | {
"+1": 18,
"heart": 3
} | MEMBER |
vuejs | core | 1,754,550,276 | 9,364 | baiwusanyu-c | similar to #7876 | 2023-10-10T07:08:47 | 2023-10-10T07:08:47 | {} | MEMBER |
vuejs | core | 1,672,943,085 | 8,818 | Tofandel | [Did a quick debug](https://play.vuejs.org/#eNp9kLFuwjAQhl8luhmFgQ2lSC1iaIe2ahm9pOaaGpw7yz7TSCjvXtuIlAEx2fq/36fvfIJH5+pjRFhCI9g72wquFFVV8xVFmCqmtTX68KBAMIiC1TYdzfxMU7OZT89gBhI007fp6n1gSjNPeZQCzb0zFv2bE8MUFCyrQjJrreXfl5KJjzi75PoH9eFGvg9DzhS8ewzoj6hgYtL6DpNkxpvPVxzSfYI976JN7TvwAwPbmB3PtadIu6R91Su2z71jL4a6bdgMghQuS2XR3BxL... | 2023-08-10T10:12:57 | 2023-08-10T10:19:49 | {} | CONTRIBUTOR |
vuejs | core | 1,676,608,084 | 8,592 | zqran | > I think it's very hard to figure out which variable should be hoisted without scope stack (like we did in Reactivity Transform package). But if we introduce scope stack, it will greatly increase the complexity of the SFC compiler.
>
> Maybe we need a complete refactor, I'm considering.
It's awesome! Looking for... | 2023-08-14T03:12:26 | 2023-08-14T03:12:26 | {} | CONTRIBUTOR |
vuejs | core | 1,678,371,229 | 8,962 | Justineo | The reason for not implementing this: https://github.com/vuejs/vue/issues/8759#issuecomment-418598816
But given that React's adoption is so worldwide, it has already made it impossible for CSS to introduce changes that may break React. So I think it would be safe for other frameworks to introduce this feature. | 2023-08-15T03:21:24 | 2023-08-15T03:21:24 | {} | MEMBER |
vuejs | core | 1,678,636,217 | 8,974 | mnm1001 | > maybe u should use reactive to `v-bind`
>
> https://play.vuejs.org/#eNqVUk1v00AQ/SvLXuqoiQ3qLTgRCeqBHtqKInHxZWuP023t3dV+mFSWr9y4IQ4gfgaIA+LXRAj+BbPrOqlQoWoOkXfem7dvZl9LF0rFjQM6panJNVeWGLBOzTPBayW1JS3JZa2chWJMNJRjJ/y/BpZb3gDpSKllTfZQY2/b8xw7bupx4g/+CoQzkUthLGGMzLxY9Hjki6UTKCYFySueXy2dtVIsolGbCYLUuGGVg/39p5nodhLNkos... | 2023-08-15T09:13:16 | 2023-08-15T09:13:16 | {} | NONE |
vuejs | core | 1,593,248,018 | 8,584 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | b8a95829a47484199700a1c6c237575ddb59d8f2 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/sites/vue... | 2023-06-15T15:04:45 | 2023-08-15T12:14:43 | {} | NONE |
vuejs | core | 1,680,904,171 | 8,987 | baiwusanyu-c | I think this is a bug. The compiler does not compile the type information of the props under the product environment, but the Custom Element does not do special processing in this situation in Runtime
cc/@sxzz | 2023-08-16T16:16:14 | 2023-08-16T16:16:14 | {} | MEMBER |
vuejs | core | 1,672,762,107 | 8,944 | LinusBorg | As a TLDR for what @yangliguo7 correctly explained: you would need to also invert the newValue in the setter:
https://play.vuejs.org/#eNp9Uk1PwzAM/SsmF4Y0NiFupUwCxAEOgADBJZesdUcgTaJ8lKGq/x03WzuQBpcosf2e/Z7TsgtrZ01ElrHcF07aAB5DtKCEXp1zFjxnC65lbY0LEL4sQguvTgaxVHhlahsDlo9YQQeVMzUcEtfh2QhowWE1hWJb+KuKa64Loz3Rog8vwsF5Xz2... | 2023-08-10T08:09:41 | 2023-08-10T08:09:41 | {} | MEMBER |
vuejs | core | 1,673,529,728 | 8,951 | Ives7 | <img width="692" alt="image" src="https://github.com/vuejs/core/assets/24537993/560c52a8-fbeb-4555-a04c-8d1f7c33e112">
I found the cause of this problem.
```typescript
// vnode missed other children in there,it just take one child.
// and node.data of server has full text content.
const vnode = optimized ? chi... | 2023-08-10T16:18:38 | 2023-08-10T16:20:01 | {} | NONE |
vuejs | core | 1,676,351,812 | 8,911 | sxzz | Duplicate of #8654 | 2023-08-13T12:55:01 | 2023-08-13T12:55:01 | {} | MEMBER |
vuejs | core | 1,676,585,154 | 8,962 | Shyam-Chen | Use `vite-plugin-vue-inline-style`. | 2023-08-14T02:32:26 | 2023-08-14T02:32:26 | {} | CONTRIBUTOR |
vuejs | core | 1,671,807,184 | 8,945 | sxzz | Not a bug, by design.
`filteredTodos` is a computed returning `todos.value` directly. Executing `todos.value.push` will not change `todos.value`, but changing the internal data only.
Option 1. Use variable assignment instead of `push` method
```ts
todos.value = [...todos.value, { id: id++, text: newTodo.value, ... | 2023-08-09T16:57:49 | 2023-08-09T16:57:49 | {} | MEMBER |
vuejs | core | 1,672,437,692 | 8,944 | yangliguo7 | TLDR;when u first click checkbox. the `testVar` not change . so the computed getter not be invoked !
——————————————————————
let`s figure out why does this happen.
at first. when the page render.
```
<input type="checkbox" v-model="isTurnedOn">
```
the checkbox get the `isTurnedOn` value. so it invoke ` ... | 2023-08-10T02:16:12 | 2023-08-10T02:16:12 | {} | CONTRIBUTOR |
vuejs | core | 1,678,018,146 | 8,586 | Waleed-KH | Thanx for the replay, this my first contribute to vue and I was trying to understand how the core works. My main motivation here is to organize the code to make it easier to understand and work with.
Before this PR `createGetter` & `createSetter` returned functions with different parameters, so they kinda worked lik... | 2023-08-14T20:32:23 | 2023-08-14T20:32:23 | {} | CONTRIBUTOR |
vuejs | core | 1,678,603,664 | 8,974 | yangliguo7 | maybe u should use reactive to `v-bind`
https://play.vuejs.org/#eNqVUk1v00AQ/SvLXuqoiQ3qLTgRCeqBHtqKInHxZWuP023t3dV+mFSWr9y4IQ4gfgaIA+LXRAj+BbPrOqlQoWoOkXfem7dvZl9LF0rFjQM6panJNVeWGLBOzTPBayW1JS3JZa2chWJMNJRjJ/y/BpZb3gDpSKllTfZQY2/b8xw7bupx4g/+CoQzkUthLGGMzLxY9Hjki6UTKCYFySueXy2dtVIsolGbCYLUuGGVg/39p5nodhLNkosiqPR... | 2023-08-15T08:43:24 | 2023-08-15T08:43:24 | {} | CONTRIBUTOR |
vuejs | core | 1,678,687,100 | 8,972 | sxzz | Seems like it cannot work. | 2023-08-15T09:59:14 | 2023-08-15T09:59:14 | {
"eyes": 1
} | MEMBER |
vuejs | core | 1,678,760,511 | 8,974 | LinusBorg | The ref is set on a plain object. so it's not being unwrapped. You are not passing the ref's value to the child, you pass the ref *itself* to the child. so `props.aa` is not the changed value of the ref, *it is the ref object*, and that does not change (oinly its `.value` does, which you don't access in the computed)
... | 2023-08-15T11:06:48 | 2023-08-15T11:09:55 | {} | MEMBER |
vuejs | core | 1,680,753,812 | 8,987 | baiwusanyu-c | https://play.vuejs.org/#eNqNUk1v2zAM/SuELsmw1N5Q9BK4AbYgh+3QFduOuqQOnaqzPqCPLIPh/z7SctwUSIvqJPI9Uo/i68QX54pDQrEUVai9chECxuRW0ijtrI/QwQ4bZXCdQrR606JGExfgsYEeGm81zKh+NvHXVrsxX5QccHuCa2tCRtcIt5eazhn8QMzzZCgycz6r8aomwmwxNiFmVWbNpJaCiNq124gUAVSPn1ddBzrsoe+rkqIhq4xLEQ5X2u6wvZWCcCkyNPaHxloCboobKeBh6+n+ie+rqhwZRK/K6TGxEDHQcI3a... | 2023-08-16T14:45:16 | 2023-08-16T14:45:16 | {} | MEMBER |
vuejs | core | 1,680,977,473 | 2,819 | tylfin | It looks like this issue is closed, but I recently ran into it with a dynamically rendered component. I found a couple of workarounds on StackOverflow, but none of those worked for me.
Eventually, I wrapped the component in a [`<KeepAlive>`](https://vuejs.org/guide/built-ins/keep-alive.html) which actually made sen... | 2023-08-16T17:11:14 | 2023-08-16T17:11:14 | {} | NONE |
vuejs | core | 1,674,437,422 | 8,852 | caohongzhi1 | > also confuse here
>
> Is the type returned by `DefineProps `generated by this ` Readonly<ExtractPropTypes<{ x:Boolean }>>` ?
>
> check the mini RP
>
> https://www.typescriptlang.org/play?#code/C4TwDgpgBACgTgezAWQsAFggJgHgCoA0UeAwggHYDOwcArgMbAJxQC8UAhuSAHxtQBtPAF0oEAB7AI5LJUEAoKFAAUygHQaOcAOaUAXJ24BKNny4gTAH... | 2023-08-11T09:14:23 | 2023-08-11T09:14:23 | {} | NONE |
vuejs | core | 1,676,947,015 | 8,965 | Shyam-Chen | ```diff
- display: block;
+ display: flex;
``` | 2023-08-14T08:58:19 | 2023-08-14T08:58:19 | {
"laugh": 1
} | CONTRIBUTOR |
vuejs | core | 1,678,674,486 | 8,974 | mnm1001 | > ```
> const vBind = {
> aa,
> }
> ```
>
> `vBind` isnt a reactive param
https://play.vuejs.org/#eNqlU01v00AQ/SuLL3XUxFbVW3AiEtQDPbQVReLiy9Yep9vau6v9MKksX7lxQxxA/AwQB8SviRD8C2Z346SHlktziDLz3ozfG7900ULKpLUQTaNMF4pJQzQYK+c5Z40UypCOFKKR1kA5JgqqseX4TXpSKdGQAxw92FFfInHbT1JXuM0I57wQXBtCKZm5HXGXc0LolBzlvB85vLK8ME... | 2023-08-15T09:47:04 | 2023-08-15T09:47:33 | {} | NONE |
vuejs | core | 1,678,745,034 | 8,975 | LinusBorg | Closing as there's nothing to do on our side, really. Edison's recommendation is simple enough. We could ammend the docs though, the docs team over in vuejs/docs would certainly apprechiate this input. | 2023-08-15T10:50:21 | 2023-08-15T10:50:21 | {} | MEMBER |
vuejs | core | 1,674,106,069 | 8,951 | edison1105 | duplicate of https://github.com/vuejs/core/issues/7285 | 2023-08-11T01:08:53 | 2023-08-11T01:08:53 | {} | MEMBER |
vuejs | core | 1,674,953,466 | 3,716 | unshame | Just spent 4 hours trying to debug this problem, and only then found this issue. Passing non-prop attributes to a component that has another component as its root that has Transition as its root causes a crash when enter transition is triggered while the leave transition is ongoing.
Here's a minimal reproduction: ... | 2023-08-11T15:14:40 | 2023-08-11T15:14:40 | {
"+1": 2
} | NONE |
vuejs | core | 1,676,649,013 | 8,565 | Alfred-Skyblue | > Conflicted. Could you please rebase your branch?
Hi, I have resolved the conflict on the branch | 2023-08-14T04:20:03 | 2023-08-14T04:20:03 | {} | MEMBER |
vuejs | core | 1,677,249,371 | 8,962 | zhangenming | imo, vue is vue because it provides a lot of simple things
| 2023-08-14T12:45:03 | 2023-08-14T12:45:03 | {} | CONTRIBUTOR |
vuejs | core | 1,678,880,539 | 8,974 | LinusBorg | the function accesses the ref's `.value` getter. JSON.stringify does not, as you can see from the printed JSON object - it only prints the ref's internal `._value` property, but skips the `.value` getter which tracks the reactive read. | 2023-08-15T12:51:00 | 2023-08-15T12:51:26 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,679,780,861 | 8,977 | Shyam-Chen | ```ts
"vue/attribute-hyphenation": "off",
"vue/v-on-event-hyphenation": "off",
```
```ts
const props = defineProps<{
myTask?: Task[];
}>();
const emit = defineEmits<{
(evt: 'goTask'): void;
}>();
```
```vue
<script lang="ts" setup>
import { VxTaskList } from 'vue-components';
import { W... | 2023-08-16T00:04:48 | 2023-08-16T00:22:23 | {} | CONTRIBUTOR |
vuejs | core | 1,680,744,442 | 7,908 | jinusean | I am facing this issue even without `v-for`.
I have a `ref` to a custom component whose `onMounted` function is being called twice | 2023-08-16T14:39:48 | 2023-08-16T14:39:48 | {} | NONE |
vuejs | core | 1,676,573,631 | 8,958 | Vallentinos | It was not pinia bug. and resolved. Thanks. | 2023-08-14T02:13:06 | 2023-08-14T02:13:06 | {} | NONE |
vuejs | core | 1,678,857,754 | 8,974 | mnm1001 | https://play.vuejs.org/#eNqlk7+O00AQxl9l2eYcXWKDrgtORIKugAJOgESzzZ49ye2ds7vaPybIcktHhyhAPAaIAvE0EYK3YHYdO4d0R3MpIu9838z+Zjxu6ELrtPZApzS3hRHaEQvO6zmTYqOVcaQhhdpo76AcEwOrsZf4T1qyMmpDjjD1aLA+RuM+nmbhECqjzGShpHWEczILNZL7oxBceVk4oSQpKlFcLb1zSi6SUcMkQWta88rD8fFDJttDiXopZIlV9qbxXsyzDh6x8eBgoyvuAE95ZKon55g2YzSmM5qhQkh+bzLpHVPO... | 2023-08-15T12:35:13 | 2023-08-15T12:44:19 | {} | NONE |
vuejs | core | 1,680,134,104 | 5,312 | the94air | @Kasopej the main cause of this issue is that `v-for` will always attach the `number` type to the loop's index even though your main object/array type has a single index type that's usually a `string`. In this current case with `$slots`, it has a string index that doesn't overlap with the `string | number` type. I am n... | 2023-08-16T07:53:05 | 2023-08-16T07:59:52 | {} | NONE |
vuejs | core | 1,671,846,377 | 8,946 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-next-template-explorer* failed.
| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | b9ba122d27cd2ebe345dcfecdb5eb3eceb32839b |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/s... | 2023-08-09T17:22:46 | 2023-08-09T17:22:46 | {} | NONE |
vuejs | core | 1,674,419,703 | 6,347 | ghost | My leader said that if we don't solve it, we will solve me | 2023-08-11T08:59:30 | 2023-08-11T08:59:30 | {
"+1": 15
} | NONE |
vuejs | core | 1,675,730,254 | 8,958 | Shyam-Chen | ```ts
export const useUserStore = defineStore('user', {
state: () => {
return {
userId: null,
};
},
});
```
```ts
const store = useStore();
store.userId = 'foo';
``` | 2023-08-12T06:10:08 | 2023-08-12T06:10:08 | {} | CONTRIBUTOR |
vuejs | core | 1,676,348,932 | 8,820 | netlify[bot] | ### <span aria-hidden="true">❌</span> Deploy Preview for *vue-sfc-playground* failed.
| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | a06b5bdb15f5ee7991b977cf5242d6c9ae243723 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/sites/vue... | 2023-08-13T12:42:52 | 2023-08-13T12:42:52 | {} | NONE |
vuejs | core | 1,678,423,812 | 8,967 | alokVishu | @Shyam-Chen,
Please find the reproduction video.
https://github.com/vuejs/core/assets/80033712/e0d28c2a-bcdb-4c1a-91d0-f5292f494bb3
| 2023-08-15T04:49:02 | 2023-08-15T04:49:02 | {
"+1": 3
} | NONE |
vuejs | core | 1,678,638,076 | 8,974 | yangliguo7 | ```
const vBind = {
aa,
}
```
`vBind` isnt a reactive param | 2023-08-15T09:15:04 | 2023-08-15T09:15:04 | {} | CONTRIBUTOR |
vuejs | core | 1,674,104,561 | 8,943 | edison1105 | @DiscreteTom
I don't think it is similar to this issue and your problem is a duplicate of https://github.com/vuejs/core/issues/7215 | 2023-08-11T01:05:56 | 2023-08-11T01:06:35 | {} | MEMBER |
vuejs | core | 1,675,845,550 | 8,958 | sxzz | If you think Pinia has a bug, please provide feedback at https://github.com/vuejs/pinia.
If it's a usage question, please ask in the GitHub discussions.
Additionally, we need **minimal** reproduction. | 2023-08-12T10:52:05 | 2023-08-12T10:52:05 | {} | MEMBER |
vuejs | core | 1,675,885,059 | 8,896 | edison1105 | > Seems like this PR didn't fix anything. [deploy-preview-8896--vue-sfc-playground.netlify.app/#eNp9kk1P4zAQhv/KrC9JRTfZFTc2rRYQEnAAxIe4+FIl0xBwbMsfoSjKf2fstAEk6CXKzPs6eWb89uxY66zzyI5YYUvTaAcWnddLLptWK+OgB4NrGGBtVAsJWZNJOlWt3vazPBThS8k/LkslrYPW1rAIp9PkHIVQ8KiMqH4lMy7XXpauURK8TnEGPZcAeQ5XSumMy4HLIh9piIMKh60WK4dUARRPf5d9... | 2023-08-12T12:19:45 | 2023-08-12T12:19:45 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,675,938,827 | 8,959 | hichem-dahi | You can fix this issue by using `withDefaults`
example
```
export interface Props {
name?: string
}
const props = withDefaults(defineProps<Props>(), {
name: 'default name',
})
```
[Source](https://vuejs.org/guide/typescript/composition-api.html#typing-component-props)
Note that if you destructure t... | 2023-08-12T14:24:44 | 2023-08-12T14:51:41 | {} | NONE |
vuejs | core | 1,678,450,851 | 8,844 | Alfred-Skyblue | > I think we can keep the changes of unit tests, but revert runtime code. Seems like we removed `new` keyword only and but a new import specifier.
Hi, I have rolled back `runtime-core`. | 2023-08-15T05:39:41 | 2023-08-15T05:39:41 | {} | MEMBER |
vuejs | core | 1,678,842,275 | 8,974 | mnm1001 | > The ref is set on a plain object. so it's not being unwrapped. You are not passing the ref's value to the child, you pass the ref _itself_ to the child. so `props.aa` is not the changed value of the ref, _it is the ref object_, and that does not change (oinly its `.value` does, which you don't access in the computed)... | 2023-08-15T12:21:26 | 2023-08-15T12:22:13 | {} | NONE |
vuejs | core | 1,680,769,265 | 8,987 | SavkaTaras | I see what you did. Is it possible to test per these docs:
Props Default Values section:
https://vuejs.org/guide/typescript/composition-api.html#typing-component-props
Thank you
| 2023-08-16T14:54:04 | 2023-08-16T15:07:04 | {} | NONE |
vuejs | core | 1,672,757,703 | 8,948 | LinusBorg | KeepAlive does *not* work on nested children. it only keeps a component tree alive if the immediate children in its slot are unmounted. | 2023-08-10T08:06:37 | 2023-08-10T08:06:37 | {} | MEMBER |
vuejs | core | 1,675,969,820 | 8,372 | stafyniaksacha | I've found a workaround, but it may have side effects
```ts
const props = defineProps<{
// allow other attributes
[attrs: string]: any
// props...
}>()
``` | 2023-08-12T15:42:39 | 2023-08-12T15:42:50 | {
"-1": 1
} | NONE |
vuejs | core | 1,676,415,296 | 8,286 | wokalek | Still need to be fixed... | 2023-08-13T17:11:02 | 2023-08-13T17:11:02 | {} | NONE |
vuejs | core | 1,676,932,657 | 8,586 | sxzz | /ecosystem-ci run | 2023-08-14T08:48:40 | 2023-08-14T08:48:40 | {
"+1": 1
} | MEMBER |
vuejs | core | 1,676,933,223 | 8,586 | vue-bot |
📝 Ran ecosystem CI: [Open](https://github.com//vuejs/ecosystem-ci/actions/runs/5853742330)
| suite | result |
|-------|--------|
| [nuxt](https://github.com/vuejs/ecosystem-ci/actions/runs/5853742330/job/15868335197) | :white_check_mark: success |
| [pinia](https://github.com/vuejs/ecosystem-ci/actions/runs/58537423... | 2023-08-14T08:49:05 | 2023-08-14T09:02:42 | {} | CONTRIBUTOR |
vuejs | core | 1,677,267,871 | 8,967 | Shyam-Chen | Unable to reproduce this issue.
<img width="399" alt="image" src="https://github.com/vuejs/core/assets/13535256/becdae82-9f4a-43ff-ae12-4f32fbc75eac">
| 2023-08-14T12:58:07 | 2023-08-14T12:58:07 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 1,680,061,608 | 8,982 | coderwei99 | @edison1105 Can you tell me what should I do? thank! | 2023-08-16T06:53:44 | 2023-08-16T06:53:44 | {} | CONTRIBUTOR |
vuejs | core | 1,591,284,368 | 5,312 | the94air | Same issue happens when you try to pass couple of slots to a child component that uses dynamic slot names. No current workarounds so far
```html
<!--
Element implicitly has an 'any' type because
expression of type 'string | number' can't be used to index type
-->
<template
v-for="(_, slot) of $slots"
#[... | 2023-06-14T14:08:16 | 2023-08-16T07:52:32 | {
"confused": 3,
"eyes": 11
} | NONE |
vuejs | core | 1,671,885,507 | 8,801 | Mini-ghost | I have moved the implementation to `runtime-core` and added a test case. Could you please review? | 2023-08-09T17:52:54 | 2023-08-09T17:52:54 | {
"+1": 1
} | CONTRIBUTOR |
vuejs | core | 1,672,609,870 | 8,948 | hminghe | ```vue
<template>
<button @click="setCom(Com2)">com2</button>
<button @click="setCom(Com3)">com3</button>
<KeepAlive>
<component :is="com" />
</KeepAlive>
</template>
``` | 2023-08-10T06:06:16 | 2023-08-10T06:06:16 | {} | NONE |
vuejs | core | 1,674,458,907 | 8,891 | dependabot[bot] | Superseded by #8957. | 2023-08-11T09:31:52 | 2023-08-11T09:31:52 | {} | CONTRIBUTOR |
vuejs | core | 1,674,662,975 | 7,672 | Csszabi98 | Hey, it is definitely not a playground bug, I have run into the exact same issue with our production application.
Here is some more context:
- It is an SSR app built on https://vite-plugin-ssr.com/ with Vue 3.3.4
- We have noticed that sometimes if the Async component chunks were loading slower on flaky networks (... | 2023-08-11T12:16:35 | 2023-08-11T12:16:35 | {} | NONE |
vuejs | core | 1,675,867,643 | 8,896 | sxzz | Seems like this PR didn't fix anything.
https://deploy-preview-8896--vue-sfc-playground.netlify.app/#eNp9kk1P4zAQhv/KrC9JRTfZFTc2rRYQEnAAxIe4+FIl0xBwbMsfoSjKf2fstAEk6CXKzPs6eWb89uxY66zzyI5YYUvTaAcWnddLLptWK+OgB4NrGGBtVAsJWZNJOlWt3vazPBThS8k/LkslrYPW1rAIp9PkHIVQ8KiMqH4lMy7XXpauURK8TnEGPZcAeQ5XSumMy4HLIh9piIMKh60WK4dUAR... | 2023-08-12T11:40:25 | 2023-08-12T11:40:25 | {} | MEMBER |
vuejs | core | 1,676,697,469 | 8,043 | johnsoncodehk | Combine to #5912. | 2023-08-14T05:23:43 | 2023-08-14T05:23:43 | {} | MEMBER |
vuejs | core | 1,677,364,602 | 8,681 | Alfred-Skyblue |

Taking the example of running "set" 10, 100, and 1000 times, as the quantity increases, the performance difference between symbols and strings will become smaller. Of course, if we consider ten runs, symbol... | 2023-08-14T13:56:16 | 2023-08-14T13:56:16 | {} | MEMBER |
vuejs | core | 1,679,607,855 | 5,312 | Kasopej | Wow, same issue here.
Using a third-party component, which has all the slot names statically set.
I am looping over the slots to render them dynamically, and getting the same complaint from Typescript @the94air | 2023-08-15T21:00:38 | 2023-08-15T21:00:38 | {} | NONE |
vuejs | core | 1,679,888,238 | 8,977 | tangtangtangtangtang | > ```ts
> "vue/attribute-hyphenation": "off",
> "vue/v-on-event-hyphenation": "off",
> ```
>
> ```ts
> const props = defineProps<{
> myTask?: Task[];
> }>();
>
> const emit = defineEmits<{
> (evt: 'goTask'): void;
> }>();
> ```
>
> ```
> <script lang="ts" setup>
> import { VxTaskList } f... | 2023-08-16T02:56:32 | 2023-08-16T02:56:32 | {} | NONE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.