pub fn wait_and_then_fn<E, Fut, F, T>( f: F, r: impl Fn(T) -> AnyView + Send + 'static, ) -> AnyViewwhere Fut: Future<Output = Result<T, E>> + Send + 'static, F: Fn() -> Fut + 'static + Send + Sync, T: Send + Sync + Clone + 'static + Serialize + for<'de> Deserialize<'de>, E: Display + Clone + Serialize + for<'de> Deserialize<'de> + Send + Sync + FromServerFnError + 'static,