Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Component] [date-picker] el-date-qpicker 组件,计算属性在vue3.4.19下,控制台有警告,Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. #15857

Open
jiaozhiye opened this issue Feb 16, 2024 · 11 comments
Labels

Comments

@jiaozhiye
Copy link

Bug Type: Component

Environment

  • Vue Version: 3.4.19
  • Element Plus Version: 2.5.5
  • Browser / OS: chrome 100
  • Build Tool: Webpack

Reproduction

Related Component

  • el-date-picker

Reproduction Link

Element Plus Playground

Steps to reproduce

image

计算属性有警告

What is Expected?

修复这个问题

What is actually happening?

有问题

Additional comments

(empty)

@yetian
Copy link

yetian commented Feb 16, 2024

Just in case this error message was introduced in 3.4.19 as a new feature:

Features
Note: this warning is categorized as a feature but released in a patch because it does not affect public APIs.

dx: warn users when computed is self-triggering (vuejs/core#10299) (f7ba97f)

See: https://github.com/vuejs/core/blob/main/CHANGELOG.md#3419-2024-02-13

@GaryDai127
Copy link

3.2.13也遇到了这个警告。

@dustfreenj
Copy link

今天也遇到了3.4.19
image

@dustfreenj
Copy link

退回到3.4.15就不报

@JackieCheung
Copy link

+1

@CDT
Copy link

CDT commented Feb 20, 2024

Same issue for vue 3.4.19 and element-plus 2.5.6. Warning pops up for even the simplest date picker.
Warning disappears when I roll back to vue 3.4.15.

@JianGuoHt
Copy link

+1
demo

image

@wen403
Copy link
Contributor

wen403 commented Feb 21, 2024

Waiting for repair

@KongQingzhi
Copy link

vue@3.4.20 + element-plus@2.5.6,The warning is gone

@ByteTerminator
Copy link

image
"vue": "^3.3.7",
"element-plus": "^2.4.4",
也遇到了这个问题

@HADB
Copy link
Contributor

HADB commented May 16, 2024

vue@3.4.27, element-plus@2.7.3 依旧存在这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.