vuepress / core

Vue-Powered Static Site Generator
https://vuepress.vuejs.org
MIT License
2.17k stars 922 forks source link

[Bug report] getters-should-be-side-effect-free #1500

Closed Mister-Hope closed 4 months ago

Mister-Hope commented 4 months ago

Description

app.js:283 [Vue warn] 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. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free

Reproduction

  1. Checkout to branch computed (it has latest deps)
  2. Install deps
  3. Run e2e docs

image

meteorlxy commented 4 months ago

See https://github.com/vueuse/vueuse/issues/3794