Explorar o código

refactor(runetime-core): removed unnecessary condition check (#237)

Sharvilak %!s(int64=6) %!d(string=hai) anos
pai
achega
ed5a42e588
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/runtime-core/src/componentRenderUtils.ts

+ 1 - 1
packages/runtime-core/src/componentRenderUtils.ts

@@ -89,7 +89,7 @@ export function shouldUpdateComponent(
       return nextProps !== null
     }
     if (nextProps === null) {
-      return prevProps !== null
+      return true
     }
     return hasPropsChanged(prevProps, nextProps)
   }