Skip to content

Nextjs DynamicWidgets + Configure double requests. #6906

@secretsales-pkostadinov

Description

🐛 Current behavior

Hi, when we try to implement in a NextJS app PLP page that has dynamic widgets for facets filtering, we hit an issue where it fires 2 requests to Algolia.

Our original target is to have virtual facets and use dynamic widgets for displaying only facets that are requared for the specific page and ordering.

This is a big issue that will affect our quota.

🔍 Steps to reproduce

1 Go to sandbox and check the terminal when load the page.
2 You will observe that they are 2 requests fired.

Live reproduction

https://codesandbox.io/p/devbox/github/secretsales-pkostadinov/Algolia-issue-demo?file=%2Fapp%2FSearch.tsx

💭 Expected behavior

We are expecting to make only one call to algolia.

Package version

"algoliasearch": "5.1.1", "algoliasearch-helper": "3.27.1", "instantsearch-ui-components": "0.18.0", "instantsearch.css": "8.11.0", "next": "16.0.7", "react": "19.0.0", "react-dom": "19.0.0", "react-instantsearch": "7.24.0", "react-instantsearch-core": "7.24.0", "react-instantsearch-nextjs": "1.0.15"

Operating system

No response

Browser

No response

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