Files
hemx/examples/client_local/src/lib.rs
T
slhx agent 38eae79a2f feat(wasm): validate client event and state ABI
req: client_local/005\nreq: client_local/006\nreq: client_local/007\nreq: client_local/008\nreq: client_local/009\nreq: client_local/010\nreq: client_local/014
2026-07-13 12:42:31 +02:00

14 lines
310 B
Rust

#[hemx::surface]
pub mod ui {}
#[hemx::handler(client)]
pub fn increment(
event: hemx::wasm::ClientEvent,
state: hemx::wasm::ClientState,
) -> impl hemx::IntoEffect {
ui::client_local::counter_panel.text(format!(
"updated by Rust/WASM ({}, {})",
event.kind, state.encoded
))
}