Skip to content

Commit

Permalink
Merge pull request #121 from TriPSs/master
Browse files Browse the repository at this point in the history
Accept props that are empty (For Redux mapStateToProps)
  • Loading branch information
monder committed Nov 23, 2016
2 parents abf9744 + cc0b304 commit 2a89a98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ _book
dist
node_modules
npm-debug.log
.idea
2 changes: 1 addition & 1 deletion src/Resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default class Resolver extends React.Component {

Object.keys(resolve).forEach(name => {
// Ignore existing supplied props or existing resolved values
if (!props.hasOwnProperty(name) && !nextState.resolved.hasOwnProperty(name)) {
if (!nextState.resolved.hasOwnProperty(name)) {
const factory = resolve[name];
const value = factory(props);
const isPromise = (
Expand Down

0 comments on commit 2a89a98

Please sign in to comment.