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

withReducer: optionally initialize state from default reducer argument #250

Merged
merged 1 commit into from Sep 27, 2016
Merged

withReducer: optionally initialize state from default reducer argument #250

merged 1 commit into from Sep 27, 2016

Conversation

just-boris
Copy link
Contributor

fixes #247

See linked issue for reasons of this change

};

initalizeStateValue() {
if (typeof initialState !== 'undefined') {
Copy link
Contributor

Choose a reason for hiding this comment

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

initialState !== undefined is enough, why typeof here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't know.
This is just my habit from the time when it was possible to define variable named undefined.
Fixed this.

@istarkov
Copy link
Contributor

Thank you!!!

@istarkov istarkov merged commit 7484657 into acdlite:master Sep 27, 2016
@billyjanitsch
Copy link
Contributor

See #247 (comment)

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

Successfully merging this pull request may close these issues.

withReducer should initialize state using default argument
3 participants