From a65cd67db35712bc9a245f26cb72166489f99662 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Tue, 6 Dec 2022 18:18:46 -0500 Subject: [PATCH] Fix name of Wasm export --- examples/hackernews/Cargo.toml | 10 ++++------ examples/hackernews/src/lib.rs | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/examples/hackernews/Cargo.toml b/examples/hackernews/Cargo.toml index 37cda2167..904c6fcfd 100644 --- a/examples/hackernews/Cargo.toml +++ b/examples/hackernews/Cargo.toml @@ -14,12 +14,10 @@ console_log = "0.2" console_error_panic_hook = "0.1" futures = "0.3" cfg-if = "1" -leptos = { path = "../../leptos", default-features = false, features = [ - "serde", -] } -leptos_meta = { path = "../../meta", default-features = false } -leptos_actix = { path = "../../integrations/actix", default-features = false, optional=true } -leptos_router = { path = "../../router", default-features = false } +leptos = { version = "0.0.20", default-features = false, features = ["serde"] } +leptos_meta = { version = "0.0", default-features = false } +leptos_actix = { version = "0.0.2", default-features = false, optional = true } +leptos_router = { version = "0.0", default-features = false } log = "0.4" simple_logger = "2" serde = { version = "1", features = ["derive"] } diff --git a/examples/hackernews/src/lib.rs b/examples/hackernews/src/lib.rs index 0e3f1679f..e4ed6d073 100644 --- a/examples/hackernews/src/lib.rs +++ b/examples/hackernews/src/lib.rs @@ -38,7 +38,7 @@ cfg_if! { use wasm_bindgen::prelude::wasm_bindgen; #[wasm_bindgen] - pub fn main() { + pub fn hydrate() { _ = console_log::init_with_level(log::Level::Debug); console_error_panic_hook::set_once(); leptos::hydrate(body().unwrap(), move |cx| {