]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
wip: pass proper args to patchDOMProp
authorEvan You <yyx990803@gmail.com>
Tue, 10 Sep 2019 16:11:08 +0000 (12:11 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 11 Sep 2019 15:10:13 +0000 (11:10 -0400)
packages/runtime-core/src/index.ts
packages/runtime-dom/src/modules/props.ts
packages/runtime-dom/src/patchProp.ts

index aebfb64020ebfc3efe315373e293529086dfbeec..d39d3083eee83abe7a719fa02f0f51e2225220a4 100644 (file)
@@ -65,3 +65,4 @@ export {
   DirectiveHook,
   DirectiveArguments
 } from './directives'
+export { SuspenseBoundary } from './suspense'
index 05c01806a5968b79781c40b0af2a1047ffdf5e0c..f7519ac93ca99ac13004dbdbb9f3d58247fc46bc 100644 (file)
@@ -2,7 +2,7 @@ export function patchDOMProp(
   el: any,
   key: string,
   value: any,
-  // the next 3 args are passed only due to potential innerHTML/textContent
+  // the following args are passed only due to potential innerHTML/textContent
   // overriding existing VNodes, in which case the old tree must be properly
   // unmounted.
   prevChildren: any,
index a634cd98ff3f090614ba984f9cc4a10bbc3900ce..82b84f1f88af55c28ba62fd71e2bfb22245c4ff1 100644 (file)
@@ -4,7 +4,11 @@ import { patchAttr } from './modules/attrs'
 import { patchDOMProp } from './modules/props'
 import { patchEvent } from './modules/events'
 import { isOn } from '@vue/shared'
-import { VNode, ComponentInternalInstance } from '@vue/runtime-core'
+import {
+  VNode,
+  ComponentInternalInstance,
+  SuspenseBoundary
+} from '@vue/runtime-core'
 
 export function patchProp(
   el: Element,
@@ -14,6 +18,7 @@ export function patchProp(
   isSVG: boolean,
   prevChildren?: VNode[],
   parentComponent?: ComponentInternalInstance,
+  parentSuspense?: SuspenseBoundary<Node, Element>,
   unmountChildren?: any
 ) {
   switch (key) {
@@ -40,6 +45,7 @@ export function patchProp(
           nextValue,
           prevChildren,
           parentComponent,
+          parentSuspense,
           unmountChildren
         )
       } else {