sycamore::futures

Function use_is_loading

pub fn use_is_loading() -> ReadSignal<bool>
Expand description

Returns a signal representing whether we are currently loading this suspense or not.

This will be true if there are any tasks remaining in this scope or in any parent scope.

This function is also reactive and so the loading state can be tracked. If it is called outside of a suspense scope, the signal will always be false.