instantsearch icon indicating copy to clipboard operation
instantsearch copied to clipboard

windowTitle value doesn't stick, getting removed immediately

Open Ali-hd opened this issue 2 years ago • 0 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

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

Ali-hd avatar Nov 10 '23 21:11 Ali-hd