Skip to content

Commit

Permalink
fix release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj committed Nov 22, 2024
1 parent df1f1f9 commit 1328976
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tachys/src/hydration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,14 @@ thread_local! {
pub(crate) fn set_currently_hydrating(
location: Option<&'static Location<'static>>,
) {
CURRENTLY_HYDRATING.set(location);
#[cfg(debug_assertions)]
{
CURRENTLY_HYDRATING.set(location);
}
#[cfg(not(debug_assertions))]
{
_ = location;
}
}

pub(crate) fn failed_to_cast_element(tag_name: &str, node: Node) -> Element {
Expand Down

0 comments on commit 1328976

Please sign in to comment.