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? |
Beta Was this translation helpful? Give feedback.
-
What do you think about this feature? :) |
Beta Was this translation helpful? Give feedback.
-
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 :) |
Beta Was this translation helpful? Give feedback.
-
Hey @Rigo-m Yassilah created a pull request with this naming and type completion indices functionality. Could you take a look at it and give your thoughts? :) |
Beta Was this translation helpful? Give feedback.
-
Guys, I am really happy to announce that this feature was merged and released in a new version 0.7.1 :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Shouldn't
useInitIndex
be 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.Beta Was this translation helpful? Give feedback.
All reactions