#Fresh support for Vue?

5 messages · Page 1 of 1 (latest)

hard compass
#

I like a lot of the ideas of fresh, but I'd love to use Vue instead of preact. Is that something that's ever been considered?

sleek aurora
#

The reason Fresh is built around Preact is that's one of the only frameworks that allow you to hook into the rendering engines directly. There are no plans at the moment to support other frameworks

hard compass
#

Okay, thank you for the reply.

I guess I'm just curious now what that means that it allows you to hook directly into the rendering engines?

I thought vue and preact/react/vue SSR rendering worked pretty much the same way.

Is it tons different? I thought they both just have functions that render a string.

https://vuejs.org/api/ssr#rendertostring

sleek aurora
#

With Preact we can modify every single element or component that's being rendered. This allows us to detect when we are rendering an island and swap out implementations under the hood among other serialization tricks to make islands work. The vue link you posted to renderToString allows us to pass vue stuff and turn it into HTML. But does it allow us to hook into every element/component and change the behavior?

hard compass
#

Ah I see. Yeah probably not. I think about astro, and how it works is that once you've declared a vue component to "load/hydrate" client side, every child component has to do the same. I think that could work, but yeah I can see how Fresh's goal is different.

Okay thanks for humoring me and helping me understand. Really appreciate it.