Queue an effect to run after the next render. You generally shouldn't need to interact with this function directly. [use_effect](https://docs.rs/dioxus-hooks/latest/dioxus_hooks/fn.use_effect.html) will call this function for you.
(f: impl FnOnce() + 'static)
| 140 | |
| 141 | /// Queue an effect to run after the next render. You generally shouldn't need to interact with this function directly. [use_effect](https://docs.rs/dioxus-hooks/latest/dioxus_hooks/fn.use_effect.html) will call this function for you. |
| 142 | pub fn queue_effect(f: impl FnOnce() + 'static) { |
| 143 | Runtime::with_current_scope(|cx| cx.queue_effect(f)) |
| 144 | } |
| 145 | |
| 146 | /// Spawn a future that Dioxus won't clean up when this component is unmounted |
| 147 | /// |
no test coverage detected