Skip to content

computed is no longer controlled by effectScope #11886

@yangmingshan

Description

@yangmingshan

Vue version

3.5.4

Link to minimal reproduction

https://play.vuejs.org/#eNp9Uk1r3DAQ/StTXXYDW5uS9BK8ph8E2lLa0i30Iggbe+x1IktCGjkLxv89I3k38SHkZM+892bezGgUn63NhoDiWhS+cp0l8EjBllJ3vTWOYASHzQYq09tAWG8AmwYr2lXGIkzQONPDiiuspJa6MtoT9L6FbZStV99QKQP/jVP1u9XFC8Un+XZZbJ1ghQQKdUsHqRMpc0Gv1xewLWGUGk4gS8+OTiA3zYa9CpjNDK42LRuSsSxaFJqrx3zsPEld5PMGeHYOCHur9oQcARSHD+U4psGmqcg5StlOswMY3vemRrWVgnEpIJ/BuhvKn8nKNbD25DvKI5Iod4HIaPhUqa56YH00I0W540+RzyATi3zhRWwEsXPddG12743mw6VppIj76BS635Y6HlkKbhuRiO35Co8/Uo5cwM05Xx2wenglf++PMSfFH4ce3YBSPGO0dy3SDN/sfuGR/59B3kRQzH4D/IveqBA9zrQvQddse8FLbr+n59fp9p+/ORJqfx4qGo3MKfGl4Lf39Y3RX+xeZldJx8fmLd4O6GJNXuBl9jG7EtMTyCAFCQ==

Steps to reproduce

  1. Change the input value, see if length change.
  2. Click the stop button.
  3. Change the input value again, see if length change.

What is expected?

The stop button can stop computed in v3.4.38

What is actually happening?

The stop button can not stop computed in v3.5.4

System Info

No response

Any additional comments?

New api added in v3.5 like scope.pause scope.resume have same issue. This use case is made up by me, it's not real. But I don't know if anyone uses like this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions