👀 Algolia components for building search UIs with Vue.js
Vue InstantSearch now supports Vue 3 (#990).
It has a few breaking changes that you can easily migrate. You can read the upgrade guide.
You can try these examples:
Vue InstantSearch now supports Vue 3.
From now on, Vue InstantSearch dynamically imports vue-server-renderer/basic
instead of require()
.
require
for CJS output.If you have different setup or use different bundler, you may check if it still works for you. If not, please create an issue with a reproducible example.
Vue InstantSearch includes two packages, one for vue 2 and another one for vue 3. So for vue 3, you need to import with this path:
import InstantSearch from 'vue-instantsearch/dist/vue3/es';
If you migrate your vue-router
to v4 along with vue 3, you need to replace
vueRouter.currentRoute.query
with
vueRouter.currentRoute.value.query
due to its change.