Comparing version 0.0.18 to 0.0.19
@@ -150,5 +150,2 @@ "use strict"; | ||
havePropsChanged(savedComponentState.props, forgoElement.props)) { | ||
const args = { | ||
element: { componentIndex: pendingAttachStates.length }, | ||
}; | ||
// Since we have compatible state already stored, | ||
@@ -158,4 +155,4 @@ // we'll push the savedComponentState into pending states for later attachment. | ||
// Get a new element by calling render on existing component. | ||
const newForgoElement = savedComponentState.component.render(forgoElement.props, args); | ||
return boundaryFallback(node, forgoElement.props, args, statesToAttach, fullRerender, boundary, () => { | ||
const newForgoElement = savedComponentState.component.render(forgoElement.props, savedComponentState.args); | ||
return boundaryFallback(node, forgoElement.props, savedComponentState.args, statesToAttach, fullRerender, boundary, () => { | ||
// Pass it on for rendering... | ||
@@ -162,0 +159,0 @@ return internalRender(newForgoElement, node, statesToAttach, fullRerender, boundary); |
{ | ||
"name": "forgo", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"main": "./dist", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
@@ -339,6 +339,2 @@ /* | ||
) { | ||
const args: ForgoRenderArgs = { | ||
element: { componentIndex: pendingAttachStates.length }, | ||
}; | ||
// Since we have compatible state already stored, | ||
@@ -354,3 +350,3 @@ // we'll push the savedComponentState into pending states for later attachment. | ||
forgoElement.props, | ||
args | ||
savedComponentState.args | ||
); | ||
@@ -361,3 +357,3 @@ | ||
forgoElement.props, | ||
args, | ||
savedComponentState.args, | ||
statesToAttach, | ||
@@ -364,0 +360,0 @@ fullRerender, |
Sorry, the diff of this file is not supported yet
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
77443
1334