algolia / instantsearch

⚑️ Libraries for building performant and instant search experiences with Algolia. Compatible with JavaScript, TypeScript, React and Vue.

Home Page:https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Insights triggering too many requests and blocking the user thread. (CORB).

bernardinorafael opened this issue Β· comments

πŸ› Current behavior

I noticed a behavior that curiously only happens in RefinementList, and more specifically when cleaning the search and resending information.

The browser is throwing the following error: "Refused to set unsafe header Content-Length".

You may also notice some error messages reporting CORB problems.

image

πŸ” Steps to reproduce

1 - Go to https://marketplace.xyami.co.ao/search
2 - Use some faceted search filters and inspect the browser.

Live reproduction

https://marketplace.xyami.co.ao/search

πŸ’­ Expected behavior

No errors when re-searching when clearing RefinementList components

Package version

react-instantsearch: 7.1.0, react-instantsearch-core: 7.1.0

Operating system

No response

Browser

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Encountering the same, though in our use case, there's no use of RefinementList.

@sacr3dc0w

I totally forgot about this issue.

my problem was related to a call to useInfiniteQuery, which was interfering with useRefinementList queries, I have already resolved this problem.

How did you resolve this? @bernardinorafael