Upgraded Leptos to 0.8. Fixes #1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+9
-17
@@ -1,3 +1,6 @@
|
||||
// Leptos view types are deeply nested; release builds overflow the default limit
|
||||
#![recursion_limit = "512"]
|
||||
|
||||
pub mod app;
|
||||
pub mod locales;
|
||||
pub mod backend;
|
||||
@@ -7,23 +10,12 @@ mod validator;
|
||||
pub mod error;
|
||||
pub mod config;
|
||||
|
||||
use cfg_if::cfg_if;
|
||||
#[cfg(feature = "hydrate")]
|
||||
#[wasm_bindgen::prelude::wasm_bindgen]
|
||||
pub fn hydrate() {
|
||||
use crate::app::*;
|
||||
|
||||
cfg_if! {
|
||||
if #[cfg(feature = "hydrate")] {
|
||||
console_error_panic_hook::set_once();
|
||||
|
||||
use wasm_bindgen::prelude::wasm_bindgen;
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn hydrate() {
|
||||
use app::*;
|
||||
use leptos::*;
|
||||
|
||||
console_error_panic_hook::set_once();
|
||||
|
||||
leptos::mount_to_body(move || {
|
||||
view! { <App/> }
|
||||
});
|
||||
}
|
||||
}
|
||||
leptos::mount::hydrate_body(App);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user