Replies: 5 comments 16 replies
|
Hey, If I understand you correctly, you would like Something like this: <script setup>
const indexes = useInitIndex(['test', 'super', 'etc'])
indexes[0].appId = 'test'
</script>This is indeed interesting feature, however I am not sure if this should be part of this composable or whether it should be a completely new composable like What do you think? |
|
What do you think about this feature? :) |
|
Hmm I see the point of storing the index names somewhere but I don't really see the value of having it as part the module. What I think could be interesting though is to provide and extensible interface to add types and IDE auto-complete for index names. This way we don't need to store the index names but they would still be "configurable" and add a lot more value (in my opinion) as you would get search results types depending on the index name. I think initializing multiple indices can be a good thing though and shouldn't be too hard to implement :) |
|
Guys, I am really happy to announce that this feature was merged and released in a new version 0.7.1 :) |
Uh oh!
There was an error while loading. Please reload this page.
Shouldn't
useInitIndexbe more capable and init more indexes at once and maybe save them into a global state accessible through the app? Could be useful when working with a big application with lots of ui components working with indexes.All reactions