Skip to content

Maximum recursive updates exceeded in component in 3.4.27 #11121

Closed
@wanghanzhen

Description

@wanghanzhen

Vue version

3.4.27

Link to minimal reproduction

https://play.vuejs.org/#eNp9UttKw0AQ/ZVhX2yxpGoFoaYFLRX0QYv6uCBpOqmpye6yl1gJ+XdnN70Jtm/LucycmZ2a3SkVVQ7ZkMUm1bmyYNA6NeYiL5XUFmpIZamcxUUPNGbQQKZlCWdkOuOCi1QKYyGTEkae71x0b/fwPNEEbwt0Ol0YjaHmArwhqpLCIZyP4JIsQG7rtNgzBDZtsbjfZqNUscVSFYlFegPEi7wa13Vofx66NU3c96A3HUhZj1lDmbJ8Ga2MFDRviMGZD5cXqF+UzSkzZ8M2oOeSopDfTwGz2mFvi6efmH79g6/M2mOczTQa1BVytuNsopdoW3r69oxreu/IUi5cQeoT5CsaWTifsZXdO7Gg2Ae6kPYx/Foulu9murYozHYoH9Qrm6DnjP5vcmL0fdxBNAg++g3a4gw1rY92SBvcXcjxu1BBPpFO2L/3gevgzZxIffON8CFJrdQ/HZGU2G3DtHXkfEX+TTrPDkOxoAsDNaEqHDY8cl9Uyl9WuImPiuTUnoYZRNfR1Q1rfgG5gQZ0

Steps to reproduce

Open the link and see the maximum recursion error

What is expected?

No maximum recursion error

What is actually happening?

Maximum recursion error

System Info

System:
    OS: macOS 14.4.1
    CPU: (16) x64 Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz
    Memory: 50.06 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.17.1/bin/yarn
    npm: 9.6.7 - ~/.nvm/versions/node/v18.17.1/bin/npm
    pnpm: 8.7.6 - ~/.nvm/versions/node/v18.17.1/bin/pnpm
    bun: 1.0.25 - ~/.bun/bin/bun
  Browsers:
    Chrome: 125.0.6422.142
    Safari: 17.4.1

Any additional comments?

This issue is similar to #10214 which was fixed by #10232, but I don't think it has been completely resolved.
Take a look at the reproduction link and "Maximum recursion error" still happened.

I also modified a test case to get the same error.
image

Using two same computed in render could cause the same error.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions