Hi Leo
Our documentation on the topic suggest using useEffect(async () => {...
useEffect(async () => {...
Does this end up working for you?