Comparing version 0.0.15 to 0.0.17
@@ -193,3 +193,5 @@ "use strict"; | ||
else { | ||
const args = { element: { componentIndex: 0 } }; | ||
const args = { | ||
element: { componentIndex: pendingAttachStates.length }, | ||
}; | ||
const ctor = forgoElement.type; | ||
@@ -463,5 +465,8 @@ const component = ctor(forgoElement.props); | ||
else { | ||
throw new Error(`Rerender was called on an element which was never seen before.`); | ||
throw new Error(`Missing forgo state on node.`); | ||
} | ||
} | ||
else { | ||
throw new Error(`Missing node information in rerender() argument.`); | ||
} | ||
} | ||
@@ -468,0 +473,0 @@ exports.rerender = rerender; |
{ | ||
"name": "forgo", | ||
"version": "0.0.15", | ||
"version": "0.0.17", | ||
"main": "./dist", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
@@ -421,3 +421,5 @@ /* | ||
else { | ||
const args: ForgoRenderArgs = { element: { componentIndex: 0 } }; | ||
const args: ForgoRenderArgs = { | ||
element: { componentIndex: pendingAttachStates.length }, | ||
}; | ||
const ctor = forgoElement.type; | ||
@@ -548,3 +550,3 @@ const component = ctor(forgoElement.props); | ||
forgoChild, | ||
childNodes[forgoChildIndex], | ||
childNodes[forgoChildIndex], | ||
[], | ||
@@ -799,6 +801,6 @@ fullRerender | ||
} else { | ||
throw new Error( | ||
`Rerender was called on an element which was never seen before.` | ||
); | ||
throw new Error(`Missing forgo state on node.`); | ||
} | ||
} else { | ||
throw new Error(`Missing node information in rerender() argument.`); | ||
} | ||
@@ -805,0 +807,0 @@ } |
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
77621
1340