Skip to content
This repository was archived by the owner on May 3, 2022. It is now read-only.
This repository was archived by the owner on May 3, 2022. It is now read-only.

onSearchStateChange is called multiple times #13

@wedneyyuri

Description

@wedneyyuri

The method onSearchStateChange is called multiple times (one time per facet added), it's causing side effects because we are using this method for URL Sync. Every time the URL change we need to trigger other events (page transitions, google analytics events, ...)

Example:

<InstantSearch appId={appId} apiKey={apiKey} indexName={indexName} onSearchStateChange={(v => console.log('onSearchStateChange', v))}>
   { ... }
<InstantSearch />

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