fix: replace leptos-shadcn-toast with custom implementation to fix WASM panic
Some checks failed
Build MIPS Binary / build (push) Failing after 1m23s

This commit is contained in:
spinline
2026-02-11 20:02:58 +03:00
parent 920704ee72
commit f35b119c0d
5 changed files with 125 additions and 10 deletions

View File

@@ -8,20 +8,20 @@ use leptos::task::spawn_local;
use leptos_router::components::{Router, Routes, Route};
use leptos_router::hooks::use_navigate;
use leptos_shadcn_skeleton::Skeleton;
use leptos_shadcn_toast::SonnerProvider;
use crate::components::toast::Toaster;
#[component]
pub fn App() -> impl IntoView {
view! {
<SonnerProvider>
<InnerApp />
</SonnerProvider>
<InnerApp />
<Toaster />
}
}
#[component]
fn InnerApp() -> impl IntoView {
crate::store::provide_torrent_store();
crate::components::toast::provide_toast_context();
let store = use_context::<crate::store::TorrentStore>();
let is_loading = signal(true);