macro_rules! is_server {
() => { ... };
}
👎 Deprecated since 0.3.1:
use G::IS_BROWSER
instead
Expand description
Checks if we’re on the server or the client. This must be run inside a reactive scope (e.g. a template!
or create_effect
),
because it uses Sycamore context.