From 22800325d33c44e777eea677b916a736ad816f30 Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Thu, 5 Oct 2017 13:27:33 +0200 Subject: [PATCH] docs(createConnector): add links for more info to deprecation (#403) 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) --- packages/react-instantsearch/src/core/createConnector.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/react-instantsearch/src/core/createConnector.js b/packages/react-instantsearch/src/core/createConnector.js index b75ddba38d..72922e0b72 100644 --- a/packages/react-instantsearch/src/core/createConnector.js +++ b/packages/react-instantsearch/src/core/createConnector.js @@ -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' ); } }