Handling Exceptions with Typesense.js
TLDR Carl has problems handling typesense.js exceptions. Jason suggests handling it via InstantSearch and a feature request for the hooks library could expose the issue.
Jul 26, 2022 (17 months ago)
onErrortype of callbacks. Edit: I'm using the typesense instantsearch adapter, so not just typesense.js directly
There is the chance I did it completely wrong of course, and if you think it should have worked, I can try again.
Though this isn't a typesense problem, so I don't expect you to answer that. Just thought maybe the typesense adapter is somehow not re-throwing the error properly. Especially since in the first issue you link to, the more recent comment he is making use of
I suspected this too… But I do re-throw any errors here: https://github.com/typesense/typesense-instantsearch-adapter/blob/3ac546dbe91d3f3ff5f392d39e7f2e3fcf5bdec0/src/TypesenseInstantsearchAdapter.js#L40
May be this could be a feature request for the hooks lib to expose
Don't worry about it though, I think the hooks should really expose an "error" state as it did before with
react-instantsearch. I was basically trying to work around it using error boundaries.
Cheers for the investigation though man
Indexed 3011 threads (79% resolved)
Issue with Typesense Instantsearch and Upgrading to React 18
Carl experienced problems updating packages for a project. VIVEK suggested disabling reactStrictMode, while Jason insisted on downgrading to React 17 due to compatibility issues. Carl eventually found a workaround.
Connecting React Instant Search with Typesense Adapter
KARTHICK sought help with an error when using Typesense Adapter for React Instant Search. Jason advised substituting import statements. After uninstalling the react-instantsearch-dom package, KARTHICK resolved the issue.
Issues with Typesense Frontend Search Integration
Akash experienced issues integrating Typesense into their frontend search, particularly with their search box. Jason guided them to troubleshoot, eventually identifying the issue to be with react-instantsearch-dom and suggesting a downgrade to react 17, which resolved the issue.
Implementing State Export Feature Using Typesense InstantSearch.js on Node.js Backend
Kyle needed help passing search state to backend for implementing an "Export" feature, while using Typesense InstantSearch. Jason provided multiple solutions including advice on using Typesense InstantSearch adapter. The issue was resolved after some iteration.
Implementing Search Suggestion/Autocomplete Functionality in Typesense
Denis needed advice on implementing search suggestions in Typesense. Jason provided a solution for fetching after 3+ letters. However, questions on design pattern and passing hooks remain unanswered.