diff --git a/packages/state/createState.js b/packages/state/createState.js index e2b94ad1..46d92134 100644 --- a/packages/state/createState.js +++ b/packages/state/createState.js @@ -29,7 +29,8 @@ export const createState = function (element, parent, options) { if (skipApplyMethods) { if (element.parent && element.parent.state) { element.state.parent = element.parent.state - } else { element.state.parent = element.state } // self loop + else + element.state.parent = {} return element.state }