Closed eunjae-lee closed 1 year ago
This would be a great addition, so here's my 👍 .
I reckon that exposing logic via functions (useSearchBox
) vs only via pre-made components (ais-search-box
) would allow people to have a much more fine grained control of how to render results.
For instance, a situation like building a very custom layout when doing multi-index search (see this question for instance) would be easier to manage in user-land by going through fewer hoops.
In the mean time, you can already check out https://github.com/algolia/vue-instantsearch/pull/1052 (and the version released by codesandbox) there @nobitagit, the code works completely (vue 2 & vue 3), but we still have to make a final decision with the team on how to expose it
Would love to use it. Is it going to be released soon?
For the time being I would recommend that you take a look at useConnector and introduce that in your own code base, before we finalise that pull request. If you have any returns on experience after that, I'd love to hear your opinions @szymon-ucinski
Summary
Hello, Vue InstantSearch users!
Can you let us know if you're interested to have composition APIs as part of Vue InstantSearch? We'd like to learn what kind of APIs you've wished to have in which use-case.
Feel free to react to this issue, drop any idea as comments, or try the following code if you're very adventurous.
↑ This is not tested much, and definitely not recommended for production.