pub fn spawn_forever(fut: impl Future<Output = ()> + 'static) -> Option<TaskId>
Expand description

Spawn a future that Dioxus won’t clean up when this component is unmounted

This is good for tasks that need to be run after the component has been dropped.