Open e-krebs opened 1 week ago
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 9723a37bd136bdfb1fc0d732c677b9f43816c0d2:
Sandbox | Source |
---|---|
example-instantsearch-getting-started | Configuration |
example-react-instantsearch-getting-started | Configuration |
example-react-instantsearch-next-app-dir-example | Configuration |
example-react-instantsearch-next-routing-example | Configuration |
example-vue-instantsearch-getting-started | Configuration |
@Haroenv as discussed, this should be ready to merge but we won't merge for now (and instead use this as a base branch for the whole feature implementation) so I'm keeping the "do not merge" label
Summary
This PR currently adds two things:
compositionID
optional parameter when initializing InstantSearchinstantsearch({ compositionID: 'composition-2', searchClient });
searchWithComposition
method inAlgoliaSearchHelper
to handle querying the composition APIindex
component (automagically added) under the hood,I had to adapt theAlgoliaSearchHelper
signature to handle being initialized with anindexName
vs. acompositionID
I made it so this is backward compatiblemaybe there's a better way?index
parameter internally to store thecompositionID
. The main reason for that is: this is the simplest way to be out of the box compatible with the sortBy widgetResult
I'm currently modifying theA dedicated example will be added later.js > getting-started
example.