Comparing version 0.4.0 to 0.4.1
@@ -34,9 +34,4 @@ 'use strict'; | ||
vnode.instance._onUpdate = onUpdate; | ||
const childContext = vnode.instance.getChildContext(); | ||
vnode.instance.context = Object.assign({}, context, childContext); | ||
Object.assign(context, childContext); | ||
vnode.instance.context = Object.assign(context, vnode.instance.getChildContext()); | ||
vnode.instance.componentWillMount(); | ||
vnode.children = vnode.instance._render(); | ||
@@ -74,3 +69,3 @@ } else { | ||
const rerender = vnode => { | ||
const rerender = (vnode, context) => { | ||
const nextProps = getProps(vnode); | ||
@@ -85,3 +80,3 @@ checkPropTypes(vnode.component, nextProps); | ||
vnode.children = vnode.component(nextProps, {}); | ||
vnode.children = vnode.component(nextProps, context); | ||
}; | ||
@@ -162,3 +157,3 @@ | ||
if (shouldUpdate) { | ||
rerender(prevNode); | ||
rerender(prevNode, context); | ||
} | ||
@@ -165,0 +160,0 @@ |
{ | ||
"name": "ink", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "React for CLI", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28625
492