). I would like to await for the underlying promise to complete. How could I acheive this?
const fetchUser = async (userId: string) => { const [users] = useUsers(); // users is built with createResource await users.???; // how to await the underlying promise? return users().find(({ id }) => id === userId);};
const fetchUser = async (userId: string) => { const [users] = useUsers(); // users is built with createResource await users.???; // how to await the underlying promise? return users().find(({ id }) => id === userId);};