vue-lazy-hydration icon indicating copy to clipboard operation
vue-lazy-hydration copied to clipboard

Support vue 3 ?

Open ghost opened this issue 3 years ago • 13 comments

Support vue 3 ?

ghost avatar Sep 17 '20 10:09 ghost

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

maoberlehner avatar Sep 17 '20 10:09 maoberlehner

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 :)

EdeMeijer avatar Jan 31 '21 09:01 EdeMeijer

Vue 3 support is planned.

maoberlehner avatar Jan 31 '21 12:01 maoberlehner

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.

danelowe avatar Apr 07 '21 06:04 danelowe

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).

maoberlehner avatar Apr 07 '21 14:04 maoberlehner

@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?

danelowe avatar May 17 '21 04:05 danelowe

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!

tjk avatar Aug 03 '21 15:08 tjk

Nuxt 3 was just released. Any updates?

phiberber avatar Oct 12 '21 21:10 phiberber

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

Tragio avatar Mar 09 '22 07:03 Tragio

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

Foddy avatar Apr 24 '22 17:04 Foddy

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

renardsas avatar Jul 11 '22 08:07 renardsas

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!

dsvgl avatar Sep 06 '22 07:09 dsvgl