Skip to content

Commit

Permalink
fix(createInstantsearch): fix missing props
Browse files Browse the repository at this point in the history
Based on @zackify findings: add back the missing props types and forward
them to InstantSearch. This commit adds them explicitly.
  • Loading branch information
Alexandre Stanislawski committed Jan 18, 2017
1 parent 730ed82 commit d020edc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/react-instantsearch/src/core/createInstantSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export default function createInstantSearch(defaultAlgoliaClient, root) {
React.PropTypes.node,
]),
indexName: PropTypes.string.isRequired,
searchParameters: PropTypes.object,
createURL: PropTypes.func,
searchState: PropTypes.object,
onSearchStateChange: PropTypes.func,
};

constructor(props) {
Expand All @@ -41,7 +45,11 @@ export default function createInstantSearch(defaultAlgoliaClient, root) {
render() {
return (
<InstantSearch
createURL={this.props.createURL}
indexName={this.props.indexName}
searchParameters={this.props.searchParameters}
searchState={this.props.searchState}
onSearchStateChange={this.props.onSearchStateChange}
root={root}
algoliaClient={this.client}
children={this.props.children}
Expand Down

0 comments on commit d020edc

Please sign in to comment.