added ssr docs to use_web_notification

This commit is contained in:
Maccesch 2023-12-06 00:39:53 +00:00
parent 67a2bee7c3
commit 72b6f31378

View file

@ -36,6 +36,10 @@ use std::rc::Rc;
/// # view! { }
/// # }
/// ```
///
/// ## Server-Side Rendering
///
/// This function is basically ignored on the server. You can safely call `show` but it will do nothing.
pub fn use_web_notification(
) -> UseWebNotificationReturn<impl Fn(ShowOptions) + Clone, impl Fn() + Clone> {
use_web_notification_with_options(UseWebNotificationOptions::default())