-
Hi, I want to use Leptos SSR. But I don't want to use the leptos watch feature, server and cargo.toml features. I want to integrate it to my own server application. Is there a way to use SSR without the server feature? This may be an illogical question, I don't know much about Leptos. For example, SSR application can be done with dioxus virtual dom, this way it is easy to integrate it into special applications. I wanted to know if there is a similar way for Leptos. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Sure. You don't want to use:
It is fairly straightforward to render a If you try and run into more specific issues feel free to ask, of course. |
Beta Was this translation helpful? Give feedback.
-
Hi, Is there any loss of performance when used this way? Also, can I still use all of Leptos' abilities? Thanks |
Beta Was this translation helpful? Give feedback.
Sure.
You don't want to use:
cargo leptos watch
: not part of the crate,cargo-leptos
is a (very convenient) separate build toolcargo-leptos
config sections of Cargo.toml, which of course you don't need if you're not usingcargo-leptos
It is fairly straightforward to render a
View
directly to HTML (https://docs.rs/leptos/latest/leptos/ssr/fn.render_to_string.html). All the rest is just for convenience.If you try and run into more specific issues feel free to ask, of course.