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

Commit

Permalink
connectorWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Apr 12, 2019
1 parent 5e6b496 commit 1d9fc33
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ const createConnectorWithContext = (connectorDesc: ConnectorDescription) => (
) => {
const Connector = createConnectorWithoutContext(connectorDesc)(Composed);

return props => (
const ConnectorWrapper: React.FC<any> = props => (
<InstantSearchConsumer>
{contextValue => (
<IndexConsumer>
Expand All @@ -369,6 +369,8 @@ const createConnectorWithContext = (connectorDesc: ConnectorDescription) => (
)}
</InstantSearchConsumer>
);

return ConnectorWrapper;
};

export default createConnectorWithContext;

0 comments on commit 1d9fc33

Please sign in to comment.