Commit 8a643c4
More cleanup
Changed files (4)
Diff
@@ -442,7 +442,7 @@ dependencies = [ [[package]] name = "kaja-web"-version = "1.0.4"+version = "1.0.5" dependencies = [ "gloo", "gloo-console",@@ -1,6 +1,6 @@ [package] name = "kaja-web"-version = "1.0.4"+version = "1.0.5" edition = "2024" description = "Web framework for Rust targeting the WebAssembly" license = "MIT"@@ -47,23 +47,6 @@ pub struct CallbackRegistration { inventory::collect!(CallbackRegistration); -pub trait ComponentStorage: Default + Sized {- fn storage() -> &'static std::thread::LocalKey<- std::cell::RefCell<std::collections::HashMap<String, SharedComponent<Self>>>,- >;-}--pub fn dispatch_component_update(component: &str, id: &str) -> bool {- for update in inventory::iter::<UpdateComponentFn> {- if update.component == component {- (update.dispatch)(id);- return true;- }- }-- false-}- /// Register callbacks that can be used in JS to run Rust functions in the WASM /// module. This needs to run when the WASM bundle is loaded. ///@@ -1,8 +1,8 @@ pub use crate::{ CallbackRegistration, Error, InitComponentFn, InitFn, Result, SharedComponent,- UpdateComponentFn, add_css_class, dispatch_component_update, get_callback, get_cookie_value,- get_element, get_element_by_id, get_elements, get_value, init_callbacks, inner_html,- inner_text, remove_css_class, try_get_value, try_inner_html, try_inner_text,+ UpdateComponentFn, add_css_class, get_callback, get_cookie_value, get_element,+ get_element_by_id, get_elements, get_value, init_callbacks, inner_html, inner_text,+ remove_css_class, try_get_value, try_inner_html, try_inner_text, }; pub use gloo::console::error;