-
I'm trying to get autocomplete to work with Algolia Query suggestions by following these steps: Note I'm using javascript not React and I can't use imports, so I use the code below:
This populates the autocomplete input field: But whenever I start typing, it never fires any XHR request or displays any suggestions. I think for some reason my searchClient is not initializing or anything. Any ideas what it could be or how I can debug this thing? Quite annoyingly most documentation is based on React. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Did you fill in the actual values (from the dashboard) for appId and apiKey, or did you write If that was the issue, please let us know so we can find a better code sample in the documentation that avoids this issue |
Beta Was this translation helpful? Give feedback.
Did you fill in the actual values (from the dashboard) for appId and apiKey, or did you write
const searchClient = algoliasearch('appId', 'apiKey');
? Are there any errors in the console?If that was the issue, please let us know so we can find a better code sample in the documentation that avoids this issue