vue3-yuanma/packages/runtime-core/__tests__
Evan You 9571ede84b refactor(watch): adjsut watch API behavior
BREAKING CHANGE: `watch` behavior has been adjusted.

    - When using the `watch(source, callback, options?)` signature, the
      callback now fires lazily by default (consistent with 2.x
      behavior).

      Note that the `watch(effect, options?)` signature is still eager,
      since it must invoke the `effect` immediately to collect
      dependencies.

    - The `lazy` option has been replaced by the opposite `immediate`
      option, which defaults to `false`. (It's ignored when using the
      effect signature)

    - Due to the above changes, the `watch` option in Options API now
      behaves exactly the same as 2.x.

    - When using the effect signature or `{ immediate: true }`, the
      intital execution is now performed synchronously instead of
      deferred until the component is mounted. This is necessary for
      certain use cases to work properly with `async setup()` and
      Suspense.

      The side effect of this is the immediate watcher invocation will
      no longer have access to the mounted DOM. However, the watcher can
      be initiated inside `onMounted` to retain previous behavior.
2020-02-17 23:16:58 -05:00
..
components refactor(watch): adjsut watch API behavior 2020-02-17 23:16:58 -05:00
helpers refactor: adjust createApp related API signatures 2020-01-27 16:00:17 -05:00
apiCreateApp.spec.ts refactor: adjust createApp related API signatures 2020-01-27 16:00:17 -05:00
apiInject.spec.ts refactor: move mockWarn utility to @vue/shared 2020-01-22 09:29:45 -05:00
apiLifecycle.spec.ts refactor(reactivity): separate track and trigger operation types 2019-12-03 11:30:24 -05:00
apiOptions.spec.ts refactor(watch): adjsut watch API behavior 2020-02-17 23:16:58 -05:00
apiSetupContext.spec.ts refactor(createComponent): rename to defineComponent (#549) 2019-12-22 10:58:12 -05:00
apiTemplateRef.spec.ts refactor(createComponent): rename to defineComponent (#549) 2019-12-22 10:58:12 -05:00
apiWatch.spec.ts refactor(watch): adjsut watch API behavior 2020-02-17 23:16:58 -05:00
component.spec.ts fix(v-model/emit): update:camelCase events should trigger kebab case equivalent 2020-01-26 14:14:03 -05:00
componentProxy.spec.ts fix(runtime-core): instance should not expose non-declared props 2020-01-27 16:00:18 -05:00
directives.spec.ts fix(runtime-core): rework vnode hooks handling 2020-02-10 13:15:36 -05:00
errorHandling.spec.ts refactor(watch): adjsut watch API behavior 2020-02-17 23:16:58 -05:00
h.spec.ts refactor(runtime-core): make h() support single vnode child (#181) 2019-10-10 10:17:16 -04:00
hmr.spec.ts test: test hot module replacement 2019-12-17 12:31:38 -05:00
rendererAttrsFallthrough.spec.ts refactor: move mockWarn utility to @vue/shared 2020-01-22 09:29:45 -05:00
rendererChildren.spec.ts refactor: move mockWarn utility to @vue/shared 2020-01-22 09:29:45 -05:00
rendererElement.spec.ts test: restructure 2019-08-29 16:56:31 -04:00
rendererFragment.spec.ts refactor(types): move shapeFlags to shared 2020-02-14 01:36:42 -05:00
rendererOptimizedMode.spec.ts test: restructure 2019-08-29 16:56:31 -04:00
scheduler.spec.ts fix(runtime-core/scheduler): invalidate job (#717) 2020-02-11 07:30:25 -05:00
vnode.spec.ts refactor(types): move shapeFlags to shared 2020-02-14 01:36:42 -05:00