Skip to content

[react-instantsearch-nextjs] Duplicate server state script tag in initial DOM #6905

@fmacherey

Description

@fmacherey

🐛 Current behavior

We are using react-instantsearch-nextjs in our project.

We having two instances of <InstantSearchNext /> accros our projects (for the result page items and the search box itself). This lead to two script tags with the server state. As the correct one comes afterwards, the value is correctly applied.

Image

🔍 Steps to reproduce

Having two instances of <InstantSearchNext /> in the project

Live reproduction

example.com

💭 Expected behavior

  • only one server state script tag

Package version

"react-instantsearch": "7.24.0", "react-instantsearch-nextjs": "1.0.15",

Operating system

macOS

Browser

Chrome

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageIssues to be categorized by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions