remove misleading warning

This commit is contained in:
Greg Johnston 2024-01-17 19:30:48 -05:00
parent 5065bed594
commit 320179bc04

View file

@ -67,9 +67,7 @@ pub fn Router(
}
});
}) as RedirectHook;
if server_fn::redirect::set_redirect_hook(router_hook).is_err() {
debug_warn!("Error setting <Router/> server function redirect hook.");
}
_ = server_fn::redirect::set_redirect_hook(router_hook);
// provide ServerFnUrlError if it exists
let location = use_location();