You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Search UI React utilizes local storage to persist local search history for the SearchBar component across sessions. The problem is that all universal searches are saved with the key __yxt_recent_searches_universal__. This means that if you go from universal search on one site to another, you'll see the searches from site 1 appear on site 2.
My suggestion would be to change the key to __yxt_recent_searches_universal__[SEARCH_EXPERIENCE_KEY]
Since the library does not have widespread usage at this point, only devs like myself who develop multiple projects at once using Search UI React are going to notice this issue, but still seems like something that should be addressed. This could be an issue if someone is trying to demo multiple sites with Universal Search implemented with Search UI React.
The text was updated successfully, but these errors were encountered:
Search UI React utilizes local storage to persist local search history for the
SearchBar
component across sessions. The problem is that all universal searches are saved with the key__yxt_recent_searches_universal__
. This means that if you go from universal search on one site to another, you'll see the searches from site 1 appear on site 2.My suggestion would be to change the key to
__yxt_recent_searches_universal__[SEARCH_EXPERIENCE_KEY]
Since the library does not have widespread usage at this point, only devs like myself who develop multiple projects at once using Search UI React are going to notice this issue, but still seems like something that should be addressed. This could be an issue if someone is trying to demo multiple sites with Universal Search implemented with Search UI React.
The text was updated successfully, but these errors were encountered: