Skip to content

Commit

Permalink
Add owner stack for invalid child warning
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Mar 14, 2020
1 parent 117cf15 commit ce78be6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion debug/src/debug.js
Expand Up @@ -282,7 +282,8 @@ export function initDebug() {
delete child._depth;
const keys = Object.keys(child).join(',');
throw new Error(
`Objects are not valid as a child. Encountered an object with the keys {${keys}}.`
`Objects are not valid as a child. Encountered an object with the keys {${keys}}.` +
`\n\n${getOwnerStack(vnode)}`
);
}
});
Expand Down

0 comments on commit ce78be6

Please sign in to comment.