vue3-yuanma/packages
Evan You 49bb44756f refactor: watch APIs default to trigger pre-flush
BREAKING CHANGE: watch APIs now default to use `flush: 'pre'` instead of
`flush: 'post'`.

  - This change affects `watch`, `watchEffect`, the `watch` component
    option, and `this.$watch`.

  - As pointed out by @skirtles-code in
    [this comment](https://github.com/vuejs/vue-next/issues/1706#issuecomment-666258948),
    Vue 2's watch behavior is pre-flush, and the ecosystem has many uses
    of watch that assumes the pre-flush behavior. Defaulting to post-flush
    can result in unnecessary re-renders without the users being aware of
    it.

  - With this change, watchers need to specify `{ flush: 'post' }` via
    options to trigger callback after Vue render updates. Note that
    specifying `{ flush: 'post' }` will also defer `watchEffect`'s
    initial run to wait for the component's initial render.
2020-09-17 23:17:21 -04:00
..
compiler-core release: v3.0.0-rc.12 2020-09-16 13:50:13 -04:00
compiler-dom release: v3.0.0-rc.12 2020-09-16 13:50:13 -04:00
compiler-sfc release: v3.0.0-rc.12 2020-09-16 13:50:13 -04:00
compiler-ssr release: v3.0.0-rc.12 2020-09-16 13:50:13 -04:00
reactivity release: v3.0.0-rc.12 2020-09-16 13:50:13 -04:00
runtime-core refactor: watch APIs default to trigger pre-flush 2020-09-17 23:17:21 -04:00
runtime-dom release: v3.0.0-rc.12 2020-09-16 13:50:13 -04:00
runtime-test release: v3.0.0-rc.12 2020-09-16 13:50:13 -04:00
server-renderer release: v3.0.0-rc.12 2020-09-16 13:50:13 -04:00
shared release: v3.0.0-rc.12 2020-09-16 13:50:13 -04:00
size-check release: v3.0.0-rc.12 2020-09-16 13:50:13 -04:00
template-explorer release: v3.0.0-rc.12 2020-09-16 13:50:13 -04:00
vue release: v3.0.0-rc.12 2020-09-16 13:50:13 -04:00
global.d.ts test: move mockWarn into setup files 2020-07-27 22:58:51 -04:00