Fixed _containerInsertAfter setting path key as stringified index (#7213)

This commit is contained in:
Mateusz Burzyński 2018-01-15 08:08:42 +01:00 committed by GitHub
parent ca86648726
commit 79c84f2f9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,5 @@
const title = "Neem contact op";
async function action() {
return <Contact title={title} />;
}

View File

@ -0,0 +1,8 @@
{
"plugins": [
"external-helpers",
"transform-async-to-generator",
"transform-react-jsx",
"transform-react-constant-elements"
]
}

View File

@ -0,0 +1,16 @@
const title = "Neem contact op";
function action() {
return _action.apply(this, arguments);
}
var _ref = React.createElement(Contact, {
title: title
});
function _action() {
_action = babelHelpers.asyncToGenerator(function* () {
return _ref;
});
return _action.apply(this, arguments);
}

View File

@ -56,7 +56,7 @@ export function _containerInsert(from, nodes) {
this.container.splice(from, 0, ...nodes);
for (let i = 0; i < nodes.length; i++) {
const to = from + i;
const path = this.getSibling(`${to}`);
const path = this.getSibling(to);
paths.push(path);
if (this.context && this.context.queue) {