Skip to content

Conversation

aaronshaf
Copy link
Member

Passes all tests.

this.forceUpdate = this.forceUpdate.bind(this)
var storeProps = {}
Object.keys(stores).forEach(key => storeProps[key] = stores[key].state)
this.state = { storeProps }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just this.state = storeProps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants