forked from OpenNeo/impress-2020
Whoops, `Promise.race` isn't quite what I wanted here. This meant that, if the image promise _fails_ before the movie _succeeds_, the outfit would crash even though it doesn't need to. (And this was happening too often, due to a bug in /api/assetImage!) Now, we accept whichever _successful_ result loads first, or reject if they _both_ fail. I tested this by having /api/assetImage always throw, and confirmed that it crashed the outfit before this change, and no longer does after this change! |
||
|---|---|---|
| .. | ||
| app | ||
| server | ||
| shared | ||
| index.js | ||
| react-app-env.d.ts | ||