Skip to content

invoke message.info in watchEffect will cause infinity loop #5553

Open
@merfais

Description

@merfais
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

undefined

Environment

"ant-design-vue": "^3.2.2", "vue": "^3.2.26"

Reproduction link

https://stackblitz.com/edit/vue-kde3lv?file=src/App.vue

Steps to reproduce

  1. define a reactive variable
  2. use the variable in watchEffect callback, and use message.info to popup any text
  3. change value of the variable, make watchEffect callback be invoked

What is expected?

watchEffect callback only invoke once, not infinity loop, like use console.log('sth msg')

What is actually happening?

watchEffect callback be invoked infinity loop

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions