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
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
pub mod ui {}
|
||||
|
||||
#[hemx::handler(client)]
|
||||
pub fn increment() -> impl hemx::IntoEffect {
|
||||
ui::client_local::counter_panel.text("updated by Rust/WASM")
|
||||
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
|
||||
))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user