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