I generate API keys that expire quiet quickly, and when the user keeps the tab open on background and comes back after the token has expired, the refine() function called inside a custom search box using connectSearchBox throws a network error I cannot catch. I'd like to be able to handle the error and refresh the page when Algolia returns that error, but could not find any way to do that.

refine() is called, not catchable. Query body reads {message: ""validUntil" parameter expired (less than current date)", status: 400}..search() method, catchable.Did you try componentDidCatch in react 16? I think it might be related
@noclat Also connectResultsState should let you access the error => probably just the error message though, I'll need to check.
Works like charm 👍
Most helpful comment
Works like charm 👍