任何人都可以帮我找到解决方案 我正在使用React,我必须使用Algolia进行搜索活动,但我不知道如何处理搜索事件Algolia fire。当搜索功能激活时,我想为页面添加新内容,例如!任何帮助将不胜感激。
我试过
const search = instantsearch({
appId: myAppId,
apiKey: myAPIkey,
indexName: 'users',
searchFunction: () => {console.log('hi')}
}: InstantSearchOptions);
但它不起作用!而且我也不确定我是否导入了正确的模块!
答案 0 :(得分:1)
我刚刚找到解决方案,如果有人在解决这个问题。解决方案是连接器! https://community.algolia.com/react-instantsearch/guide/Connectors.html