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
I have a simple search app using Gatsby, Meilisearch, and Instantsearch. I'm using Meilisearch Cloud as well.
Search and all that works great. I wanted to fine tune the result being shown in the UI when filtering. InstantSearch's docs referred me to use transformItems within the Menu component I'm using (make sure you're on InstantSearch v7 when clicking the url).
Any time I add the prop, I run into an infinite loop. Even when I'm just returning the initial results with no mutations.
Heres another discussion about it, it seems like to make it work, the transformItems function needs to be declared outside your component. algolia/react-instantsearch#3541
Description
Hello!
I have a simple search app using Gatsby, Meilisearch, and Instantsearch. I'm using Meilisearch Cloud as well.
Search and all that works great. I wanted to fine tune the result being shown in the UI when filtering. InstantSearch's docs referred me to use
transformItems within the Menu component I'm using (make sure you're on InstantSearch v7 when clicking the url).
Any time I add the prop, I run into an infinite loop. Even when I'm just returning the initial results with no mutations.
<Menu attribute="optionTypes.optionValues.presentation" transformItems={(items) => { console.log("items: ", items); return items; }} />
Any insights?
Packages used:
"react-instantsearch": "^7.5.3",
"@meilisearch/instant-meilisearch": "^0.13.6",
"gatsby-plugin-meilisearch": "^0.3.1",
If applicable, add screenshots or logs to help explain your problem.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: