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

windowTitle value doesn't stick, getting removed immediately

Ali-hd opened this issue Β· comments

πŸ› Current behavior

I tried adding a windowTitle using the routerOptions of createInstantSearchRouterNext, it didn't work as expected.

When I try to write a query, I can see the value for just a second before it goes back to the default window title.

πŸ” Steps to reproduce

  1. Open the sandbox browser window in a new tab in order to see the window title change.
  2. Enter any query and observe how the window title changes.
  3. You can try the same with clicking a category.

Live reproduction

https://codesandbox.io/p/sandbox/clever-elion-l9qrgg?file=%2Fpages%2Findex.tsx%3A57%2C19-57%2C48

πŸ’­ Expected behavior

As you enter a query value or click on a facet filter, the window title should update accordingly and doesn't get reverted back to the original title.

Package version

"react-instantsearch": "7.3.0",

Operating system

macOs 13.1

Browser

Chrome Version 119.0.6045.124

Code of Conduct

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