SlimyS
Convex Community6mo ago
2 replies
Slimy

Are .runAfter(0, api.something) awaited ?

Hi, I'm using R2 components to store files with an Action. I'm running into an issue where the r2.getUrl() is returning an url before r2.store() or Cloudflare R2 finish processing my file to their CDN. Adding a 1 second promise between getting the url and displaying the url fixes it but it's very ugly. Any suggestions ?
Was this page helpful?