Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Make render function of WrapStory pure #61

Merged
merged 1 commit into from
Oct 13, 2016
Merged

Conversation

roonyh
Copy link
Contributor

@roonyh roonyh commented Oct 13, 2016

The render function of a React component has to be pure. But WrapStory render function called storyFn. Which could be not pure. Because it could take data from anywhere and also may render other components. Like the case in #60

This fixes #60

@arunoda
Copy link
Contributor

arunoda commented Oct 13, 2016

LGTM.

@roonyh roonyh force-pushed the make-wrapstory-render-pure branch from c70e717 to 57b88a3 Compare October 13, 2016 02:55
The render function of a React component has to be pure. But WrapStory render function called storyFn. Which could be not pure. Because it could take data from anywhere and also may render other components. Like the case in #60

This fixes #60
@roonyh roonyh force-pushed the make-wrapstory-render-pure branch from 57b88a3 to 5fc87d0 Compare October 13, 2016 05:10
@roonyh roonyh merged commit 09285b3 into master Oct 13, 2016
@roonyh roonyh deleted the make-wrapstory-render-pure branch October 13, 2016 05:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Warning occurs when mounted with enzyme
2 participants