Skip to main content

Crate swr_runtime_web

Crate swr_runtime_web 

Source
Expand description

Browser implementation of the [swr_core::Runtime] trait: tasks run on the browser event loop via spawn_local, timers via gloo-timers, time via the Performance API (web_time), plus a shared, reference-counted focus/online event source forwarding DOM events to [SwrClient::broadcast].

On non-wasm targets this crate compiles to an empty library.