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

Commit

Permalink
docs(createConnector): add links for more info to deprecation (#403)
Browse files Browse the repository at this point in the history
It's always useful to immediatly learn more and learn the solution of some problem that has been warned to you if available. React itself has short links for warnings (fb.me, we could also do that for alg.li, but maybe that's for later)
  • Loading branch information
Haroenv authored and mthuret committed Oct 5, 2017
1 parent a62b215 commit 2280032
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/react-instantsearch/src/core/createConnector.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,11 @@ export default function createConnector(connectorDesc) {
'only to access the `searchState` and the `searchResults` through `getProvidedProps`.' +
'We are now provided a dedicated API' +
' the `connectStateResults` connector that you should use instead. The `createConnector` API will be ' +
'soon deprecated and will break in future next major versions.'
'soon deprecated and will break in future next major versions.' +
'\n\n' +
'See more at https://community.algolia.com/react-instantsearch/connectors/connectStateResults.html' +
'\n' +
'and https://community.algolia.com/react-instantsearch/guide/Conditional_display.html'
);
}
}
Expand Down

0 comments on commit 2280032

Please sign in to comment.