diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..3f3f094 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "rust-analyzer.linkedProjects": [ + "./examples/use_element_size/Cargo.toml" + ] +} \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 7812a43..da19569 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,9 +12,8 @@ readme = "README.md" repository = "https://github.com/Synphonyte/leptos-use" homepage = "https://leptos-use.rs" - [dependencies] -leptos = "0.3.0" +leptos = { version = "0.3", features = ["stable"] } wasm-bindgen = "0.2.86" js-sys = "0.3.63" default-struct-builder = "0.2.1" diff --git a/examples/on_click_outside/rust-toolchain.toml b/examples/on_click_outside/rust-toolchain.toml index 271800c..292fe49 100644 --- a/examples/on_click_outside/rust-toolchain.toml +++ b/examples/on_click_outside/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "nightly" \ No newline at end of file +channel = "stable" diff --git a/examples/on_click_outside/src/main.rs b/examples/on_click_outside/src/main.rs index 2ab7b71..60a42e2 100644 --- a/examples/on_click_outside/src/main.rs +++ b/examples/on_click_outside/src/main.rs @@ -7,15 +7,15 @@ fn Demo(cx: Scope) -> impl IntoView { let (show_modal, set_show_modal) = create_signal(cx, false); let modal_ref = create_node_ref(cx); - let _ = on_click_outside(cx, modal_ref, move |_| set_show_modal(false)); + let _ = on_click_outside(cx, modal_ref, move |_| set_show_modal.set(false)); view! { cx, - + - +