error[E0277]: the trait bound `impl yew::functional::hooks::Hook<Output = UseAsyncHandle<UserData, RequestError>> + '_: Hook` is not satisfied
--> src/client/user_context_provider.rs:20:21
|
20 | let current_user = use_async(async move { api_users_me().await });
| ---------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| the trait `Hook` is not implemented for `impl yew::functional::hooks::Hook<Output = UseAsyncHandle<UserData, RequestError>> + '_`
| required by a bound introduced by this call
|
= help: the trait `Hook` is implemented for `BoxedHook<'_, T>`
I can't get what's the problem with trait bound when I try to use use_async hook:
API function is
I get this error