leptos_hydrated 0.8.0

A component to hydrate and manage interactive hydration state in Leptos 0.8
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[macro_export]
macro_rules! isomorphic {
    (state => $state:expr, hydrate => $hydrate:expr $(,)?) => {{
        #[cfg(feature = "ssr")]
        {
            $state
        }
        #[cfg(not(feature = "ssr"))]
        {
            $hydrate
        }
    }};
}