Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ pub fn init() {

tracing::info!("VBStack initialized");

// Initialize Nostr client
hooks::use_nostr_client::init_nostr_client();
// Note: Nostr client initialization moved to App component
// to run within Dioxus runtime context
}
7 changes: 7 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ fn main() {
/// Root application component
#[component]
fn App() -> Element {
use vbstack::hooks::use_nostr_client::init_nostr_client;

// Initialize Nostr client within the Dioxus runtime
use_effect(move || {
init_nostr_client();
});

rsx! {
Router::<Route> {}
}
Expand Down
Loading