Skip to content

Universal recent searches persisting across experiences  #364

@apav-dev

Description

@apav-dev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions