maoberlehner / vue-lazy-hydration

Lazy Hydration of Server-Side Rendered Vue.js Components
MIT License
1.19k stars 52 forks source link

Support vue 3 ? #68

Open ghost opened 4 years ago

ghost commented 4 years ago

Support vue 3 ?

maoberlehner commented 4 years ago

Hopefully this package will be obsolete with the release of Nuxt 3 / Vue 3

EdeMeijer commented 3 years ago

Hey, I was wondering what the state of lazy hydration with vue 3 is right now (can't find much about it except this repo). I saw your blog post from november 2020 stating that you are porting this package to vue 3, so I guess that means it's not obsolete after all? Perhaps this issue should be reopened if so so we can follow its progress.

Just researching options for a project, not in immediate need but having this work would definitely settle things :)

maoberlehner commented 3 years ago

Vue 3 support is planned.

danelowe commented 3 years ago

I was uncomfortable with starting a Vue 3 project until I knew this could be done, so I quickly knocked up something to work with Vue 3

https://gist.github.com/danelowe/82d870674bac81a9aaa37eb29caaa42c

It seems to work ok with the import wrappers.

Also seems to work with LazyHydrate as long as you don't forget to use defineAsyncComponent when loading any async the components that go into the slot.

maoberlehner commented 3 years ago

The Vue 3 Version will take advantage of a couple of improvements that are possible thanks to the new Vue 3 API. I have a Proof of Concept version running but it will not be released before Nuxt 3 (although not directly related and not limited to Nuxt).

danelowe commented 3 years ago

@maoberlehner Is it possible to see the proof of concept, or anywhere to look to see what can be done with hydration in Vue 3?

tjk commented 3 years ago

Any updates on this or still just waiting on nuxt 3? Would also be interested if you could share anything early... Thanks for your work on this nonetheless!

phiberber commented 3 years ago

Nuxt 3 was just released. Any updates?

Tragio commented 2 years ago

@maoberlehner thank you for your wonderful work. Nuxt 3 RC will be released this month. Do you have an ETA? 😄

Foddy commented 2 years ago

The RC is out now. Any chances to see the proof of concept in near future? 🙃

renardsas commented 2 years ago

See this discussion

renardsas commented 2 years ago

Achieving lazy hydration in Vue 3 from scratch : https://blog.logrocket.com/vue-3-lazy-hydration-from-scratch/

dsvgl commented 2 years ago

Someone made a lazy hydration library for Vue 3 🎉 https://github.com/freddy38510/vue3-lazy-hydration

Tested it with a nuxt 3 app -> works great!

toBeOfUse commented 2 months ago

Vue 3.5+ supports lazy hydration natively: https://vuejs.org/guide/components/async#lazy-hydration