leptos_hydrated 0.9.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
15
16
17
#[macro_export]
macro_rules! isomorphic {
    (state => $state:expr, hydrate => $hydrate:expr $(,)?) => {{
        #[cfg(feature = "ssr")]
        {
            $state
        }
        #[cfg(all(not(feature = "ssr"), target_arch = "wasm32"))]
        {
            $hydrate
        }
        #[cfg(all(not(feature = "ssr"), not(target_arch = "wasm32")))]
        {
            $state
        }
    }};
}