nuxt-modules / algolia

🔎 Algolia module for Nuxt
https://algolia.nuxtjs.org/
MIT License
191 stars 35 forks source link

docs: using vue-instantsearch with ssr #143

Closed Laruxo closed 1 year ago

Laruxo commented 1 year ago

Types of changes

Description

Adds documentation on using vue-instantsearch with SSR in Nuxt 3.

Resolve https://github.com/nuxt-modules/algolia/issues/132

Checklist:

nuxt-studio[bot] commented 1 year ago

Live Preview ready!

Name Edit Preview Latest Commit
Algolia Edit on Studio ↗︎ View Live Preview 00a1c1fc78a77dee1b21e88c6c3265ff51d95bdd
Baroshem commented 1 year ago

Hey @Laruxo

Could you add here the recommendations from Haroenv? I would like to merge this PR to the upcoming 1.6.0 version of the module :)

Laruxo commented 1 year ago

After the comment from Haroenv, I found that this solution only works for very simple cases. I am still debugging to understand how to make it work with refinements and initial UI state.

Baroshem commented 1 year ago

Ok, thanks for the heads up! I will await further docs section then.

Kudos to you! 🍪

Laruxo commented 1 year ago

@Baroshem this is the latest working version. I don't like how it looks, but I hope that somebody with more Vue/Nuxt knowledge will find a better alternative soon.

Baroshem commented 1 year ago

Hey @Laruxo

Thank you very much for the documentation about it!

I think for now we can have this intruction on how to use Instantsearch with Nuxt on SSR.