Services
caution
Yew services will be removed in the next version of Yew v0.19.
Recommended replacements:
ConsoleService- weblog or gloo_consoleDialogService- gloo_dialogsIntervalService- gloo-timersKeyboardService-onkeydown/onkeypress/onkeyuplike so:let callback = Callback::from(|e| {
e.prevent_default();
todo!("use `e`, like you would in service methods.");
});
html! {
<input onkeydown={callback} />
}ResizeService- useEventListenerfrom gloo_events to attach the event listener instead.StorageService- gloo-storageTimeoutService- gloo-timersWebSocketService- wasm-sockets or reqwasmFetchService- reqwest or reqwasm