Autocomplete Hits are always empty

Hello ! I have been struggling for hours now and can’t figure out why my hits props is always an empty array. I am confident that the data exists, due to the fact that I am using the public datasets you shared on Github. Here is a full reproducible of my issue: cocky-snowflake-gni9uf - CodeSandbox.

Could you please tell me what is wrong ? Thank you very much !!

Hi @ekaterinajanssen18!

It looks like you are trying to update this older CodeSadnbox using React 15 to use React 18 and more recent versions of InstantSearch and Downshift.

I’m guessing something has changed that breaks the old style of integration, most likely this will need to updated to use React Hooks.

I’m going to play with it a bit to see if I can get it working here, but if you want to get up and running quickly, an alternative would be to use the Algolia Autocomplete library instead of Downshift, which has helpers to integrate with InstantSearch out-of-the-box.