Clear warnings

This commit is contained in:
Greg Johnston 2022-12-19 07:39:30 -05:00
parent 5ee8b20770
commit 557bd25e2c
7 changed files with 1 additions and 11 deletions

View File

@ -21,7 +21,6 @@ bincode = "1"
url = { version = "2", optional = true }
urlencoding = "2"
thiserror = "1"
typed-builder = "0.10"
serde_urlencoded = "0.7"
serde = "1"
js-sys = { version = "0.3" }

View File

@ -1,7 +1,6 @@
use crate::{use_navigate, use_resolved_path, ToHref};
use leptos::*;
use std::{error::Error, rc::Rc};
use typed_builder::TypedBuilder;
use wasm_bindgen::JsCast;
use wasm_bindgen_futures::JsFuture;

View File

@ -1,10 +1,6 @@
use cfg_if::cfg_if;
use leptos::leptos_dom::IntoView;
use leptos::*;
use typed_builder::TypedBuilder;
#[cfg(any(feature = "csr", feature = "hydrate"))]
use wasm_bindgen::JsCast;
use crate::{use_location, use_resolved_path, State};

View File

@ -12,12 +12,11 @@ pub fn Outlet(cx: Scope) -> impl IntoView {
let (outlet, set_outlet) = create_signal(cx, None);
create_effect(cx, move |_| {
let is_showing_val = { is_showing.borrow().clone() };
let child = route.child();
match (route.child(), &is_showing_val) {
(None, _) => {
set_outlet.set(None);
}
(Some(child), Some(path))
(Some(child), Some(_))
if Some(child.original_path().to_string()) == is_showing_val =>
{
// do nothing: we don't need to rerender the component, because it's the same

View File

@ -1,7 +1,6 @@
use std::{borrow::Cow, rc::Rc};
use leptos::*;
use typed_builder::TypedBuilder;
use crate::{
matching::{resolve_path, PathMatch, RouteDefinition, RouteMatch},

View File

@ -3,7 +3,6 @@ use std::{cell::RefCell, rc::Rc};
use leptos::*;
use thiserror::Error;
use typed_builder::TypedBuilder;
#[cfg(not(feature = "ssr"))]
use wasm_bindgen::JsCast;

View File

@ -6,7 +6,6 @@ use std::{
};
use leptos::*;
use typed_builder::TypedBuilder;
use crate::{
matching::{