]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
refactor(runetime-core): removed unnecessary condition check (#237)
authorSharvilak <sharvilakt@gmail.com>
Sat, 12 Oct 2019 15:00:29 +0000 (20:30 +0530)
committerEvan You <yyx990803@gmail.com>
Sat, 12 Oct 2019 15:00:29 +0000 (11:00 -0400)
packages/runtime-core/src/componentRenderUtils.ts

index cdd232ee960692c3f0fe5d6991cdb1f32b4d8c07..b2725de6ff953908fa3994199ffc4dfe6c44f803 100644 (file)
@@ -89,7 +89,7 @@ export function shouldUpdateComponent(
       return nextProps !== null
     }
     if (nextProps === null) {
-      return prevProps !== null
+      return true
     }
     return hasPropsChanged(prevProps, nextProps)
   }