algolia / instantsearch

⚡️ Libraries for building performant and instant search and recommend experiences with Algolia. Compatible with JavaScript, TypeScript, React and Vue.
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/
MIT License
3.74k stars 527 forks source link

Duplicated queries network request when using search-insights setAuthenticatedUserToken #6216

Open Ali-hd opened 6 months ago

Ali-hd commented 6 months ago

🐛 Current behavior

There are duplicated queries request when trying to run aa('setAuthenticatedUserToken', '12345'); from search-insights package

This issue occurred after upgrading from react-instantsearch 7.5.0 > 7.8.0

🔍 Steps to reproduce

  1. Open the network tab in browser dev tools
  2. Reload the page
  3. Observe the duplicated queries request

Live reproduction

https://codesandbox.io/p/sandbox/youthful-ishizaka-vv9dsd

💭 Expected behavior

There should not be duplicated queries request when running aa('setAuthenticatedUserToken', '12345');

Package version

react-instantsearch 7.9.0

Operating system

windows 10 pro

Browser

Version 125.0.6422.78 (Official Build) (64-bit)

Code of Conduct