Skip to content

Adds a spec constructor function with getInitialState#49

Merged
paf31 merged 1 commit into
purescript-contrib:masterfrom
ethul:topic/get-initial-state
Oct 18, 2015
Merged

Adds a spec constructor function with getInitialState#49
paf31 merged 1 commit into
purescript-contrib:masterfrom
ethul:topic/get-initial-state

Conversation

@ethul
Copy link
Copy Markdown
Contributor

@ethul ethul commented Oct 17, 2015

I thought it might be handy to have a constructor that allows for passing in the getInitialState function. Sometimes the initial state might be derived from the props and there may not be a good plain state value that is known at the time the class is specified.

paf31 added a commit that referenced this pull request Oct 18, 2015
Adds a spec constructor function with getInitialState
@paf31 paf31 merged commit 8f99b18 into purescript-contrib:master Oct 18, 2015
@paf31
Copy link
Copy Markdown
Contributor

paf31 commented Oct 18, 2015

Thanks! Looks good.

@ethul
Copy link
Copy Markdown
Contributor Author

ethul commented Oct 19, 2015

Thank you!

On Sun, Oct 18, 2015 at 6:27 PM, Phil Freeman notifications@github.com
wrote:

Thanks! Looks good.


Reply to this email directly or view it on GitHub
#49 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants