Replies: 3 comments 1 reply
-
No, InstantSearch works by registering widgets which then keep track of their refinement state to be able to send the search queries and dispatch the results. Instead of forcing the widgets to be registered outside of where you're using it, have you considered using the useRefinementList etc hooks there specifically? that depends on your exact implementation of course |
Beta Was this translation helpful? Give feedback.
-
If I wanted to do this I'd use instantsearch without the provided react Bridge, and then write my own components. But I don't see the uptick in that. My own widgets are very different in appearance from the Algolia defaults (https://www.covenanthealth.com/find-a-doctor) and interlace with react-router-dom and react-aria for accessibility, but I've not had cause to supress what Algolia is doing out of the box. Could you please explain the behavior you seek without delving into the implementation details at first - that can wait until there's a clear understanding of the problem at hand. |
Beta Was this translation helpful? Give feedback.
-
Hi , I have a component for PLP rendering which is shared across many apps (a search app using Algolia being one of these), this takes the items + filters to render , and has a callback for filter changes. I want to hook Algolia up to use this. I have found what seems to be a better way than I first shared.
I have something along these lines which maps data in and handles filter events, this is seeming to work
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to use algolia in a fully headless way in React, where it does not take any role in rendering UI, and where i have a separate component responsible for rendering items and filters and have a set filter callback. I have hooked this up and I am setting refinement using setIndexUiState.
I am finding that in order for this to work , I need to force the registration by adding
Is there an easy way to force the registration of the refinement facets without adding these RefinementList + RangeInputs?
Beta Was this translation helpful? Give feedback.
All reactions