Synphonyte / leptos-struct-table

Easily create Leptos table components from structs
Apache License 2.0
164 stars 24 forks source link

Enable leptos-use ssr feature #21

Closed RumovZ closed 8 months ago

RumovZ commented 8 months ago

I was just getting function not implemented on non-wasm32 targets errors, but with this change it finally worked. However, maybe this should be feature-gated in leptos-struct-table itself?

maccesch commented 8 months ago

Thanks for your PR. Unfortunately that is not how you enable SSR in leptos-use.

If you read the docs carefully you'll that you need to add leptos-use to your Cargo.toml and then enable the feature "ssr" only for your projects "ssr" feature.

See here: https://leptos-use.rs/server_side_rendering.html

This is not described in the docs of this crate though, which is an oversight on my part. I'll add it ASAP.

RumovZ commented 8 months ago

That makes sense. Thanks for adding it to the docs!