We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 163c6c5 commit 57e0ad4Copy full SHA for 57e0ad4
src/xclass.ts
@@ -43,7 +43,7 @@ export function genXComponentClass<E extends Stream, I, S>(WrappedComponent: Rea
43
this.machine.actions = bindActions(actions || {}, engine.intent$, this)
44
45
this.defaultKeys = WrappedComponent.defaultProps ? (<(keyof S)[]>Object.keys(WrappedComponent.defaultProps)) : [];
46
- this.setState(Object.assign(
+ this.state = (Object.assign(
47
{},
48
WrappedComponent.defaultProps,
49
<Pick<S, keyof S>>pick(this.defaultKeys, props)
0 commit comments