Browse Source

fix(runtime-core): ensure keep-alive deep-watches include/explude props (#2551)

fix #2550
Thorsten Lünborg 5 years ago
parent
commit
421205d0ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/runtime-core/src/components/KeepAlive.ts

+ 1 - 1
packages/runtime-core/src/components/KeepAlive.ts

@@ -179,7 +179,7 @@ const KeepAliveImpl = {
         exclude && pruneCache(name => !matches(exclude, name))
       },
       // prune post-render after `current` has been updated
-      { flush: 'post' }
+      { flush: 'post', deep: true }
     )
 
     // cache sub tree after render