Function create_detatched_suspense_scope
pub fn create_detatched_suspense_scope<T>(
f: impl FnOnce() -> T,
) -> (T, SuspenseScope)
Expand description
Create a new suspense scope that is detatched from the rest of the suspense hierarchy.
This is useful if you want the result of this suspense to be independent of the praent suspense scope.
It is rarely recommended to use this fucntion as it can lead to unexpected behavior when using
server side rendering, and in particular, streaming. Instead, use create_suspense_scope
.
The reason for this is because we generally expect outer suspenses to be resolved first before an inner suspense is resolved, since otherwise we would have no place to show the inner suspense as the outer fallback is still being displayed.