-
I've got some spurious hydration errors in production that I have no way to reproduce (they don't happen locally, and they don't happen when refreshing the page). The errors in release mode aren't very helpful (they just say "unreachable executed"). I've found that the hydration mismatch is printed to the console if the application is in debug mode, or if "debuginfo" is enabled, but how could I enable debuginfo for release application? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nearly all the flags for this are like this: Line 98 in 5227221 This means that if you set your Rust cfg flags to include |
Beta Was this translation helpful? Give feedback.
Nearly all the flags for this are like this:
leptos/tachys/src/lib.rs
Line 98 in 5227221
This means that if you set your Rust cfg flags to include
leptos_debuginfo
, they should be included. So for example,RUSTFLAGS="--cfg leptos_debuginfo" cargo leptos build --release
should include the debug info.