Closed leeoniya closed 1 year ago
@localvoid
i have to pass it a regular function containing an async iife wrapper if i want to use await loops inside.
await
(probably same applies to IdleEffect and LayoutEffect)
useEffect() hook in React also doesn't work with async functions. https://devtrium.com/posts/async-functions-useeffect
useEffect()
ok, that explanation makes sense :+1:
@localvoid
i have to pass it a regular function containing an async iife wrapper if i want to use
await
loops inside.(probably same applies to IdleEffect and LayoutEffect)