this post was submitted on 11 Apr 2025
26 points (100.0% liked)

Rust

6812 readers
15 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
 

I made a small project using leptos, but after updating leptos ended up with some unfixable bugs. The error and warning messages are too inaccurate, and due to all reactivity being implicit, it is hard to read my code now and figure out what would be wrong.

I thought about rewriting everything in yew, but was wondering if things work better there. As far as I understand, there is no such thing as implicit reactivity in yew, and everything that needs to be reactive needs to be wrapped in certain types. But I am fine with that, even though #[derive(Store)] in leptos was convenient.

Does anyone use leptos or yew in production or for any more serious projects, and can share some experiences? How do you usually debug your applications? Have you given up on some application that just didn't work?

top 5 comments
sorted by: hot top controversial new old
[–] asudox@lemmy.asudox.dev 12 points 1 week ago

afaik yew is dead. The last release was 2 years ago.

[–] fxomt@lemmy.dbzer0.com 11 points 1 week ago (1 children)

Yew is dead. Maybe try out dioxus? Its my preferred tool.

[–] Sibbo@sopuli.xyz 1 points 1 week ago

It looks cool, thanks!

[–] Ephera@lemmy.ml 6 points 1 week ago

We use Leptos at $DAYJOB for a web-UI of medium complexity. Debugging is mainly a matter of println-debugging, to be honest. Well, with log statements. We use tracing-web for logging to the browser console (if you're using log rather than tracing, you can do the same with console_log). And then console_error_panic_hook to make panics visible in the browser console.

None of this is particularly great. Sometimes you get a stacktrace and no chance to try to debug it, because it happens in compiled WebAssembly. Sometimes you run into reactivity issues, which you just have to try to reproduce and narrow down why it happens.

You do gain experience over time and can spot issues more quickly or code it correctly upfront. And well, I've never seen a frontend framework, which was immediately intuitive in its reactivity or similar. Humans are just a messy interface.

Yeah, not sure what else to add. The upgrade to Leptos 0.7 was definitely a challenge, but we managed to push through, although I would not have wanted to do that without some of the experiences I've made with personal projects.
Feel free to ask questions, if you want to know anything more concrete.

[–] alzymologist@sopuli.xyz 2 points 1 week ago

Even 2 years ago, yew was way way worse than actually writing js by hand.