Skip to content

Conversation

@PSpSynedra
Copy link
Contributor

This produce better Error messages, when store property is not being provided.

In our case we migrated to redux-1.0.x and got the waring:

Warning: Failed Context Types: Required child context `store` was not specified in `Provider`

because previously the property holding the flux instance was named redux.

With the propTypes specified you would get the following warning:

Warning: Failed propType: Required prop `store` was not specified in `Provider`

which makes it pretty clear how and where to fix the issue.

This produce better Error messages, when store property is not being provided.

In our case we migrated to redux-1.0.x and got the waring: 
"Warning: Failed Context Types: Required child context `store` was not specified in `Provider`"
because previously the property holding the flux instance was named redux.

With the propTypes specified you would get the following warning: 
"Warning: Failed propType: Required prop `store` was not specified in `Provider`"
which makes it pretty clear how and where to fix the issue.
gaearon added a commit that referenced this pull request Aug 18, 2015
Enforce shape of store property
@gaearon gaearon merged commit d5bf492 into reduxjs:master Aug 18, 2015
@gaearon
Copy link
Contributor

gaearon commented Aug 18, 2015

Thanks. Somehow I lost it while refactoring.

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