You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Curious if it would make sense to restrict Promise.all to only accept PromiseLike arguments. You can always Promise.resolve(5) if you really need to place a non promise in it, and then it might avoid this issue?
probably more properly an eslint change tbh though.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
https://x.com/alvarlagerlof/status/1720182566135779582?s=46&t=G7pFn2184k4yqrwhVaGMiQ
Curious if it would make sense to restrict Promise.all to only accept PromiseLike arguments. You can always Promise.resolve(5) if you really need to place a non promise in it, and then it might avoid this issue?
probably more properly an eslint change tbh though.
Beta Was this translation helpful? Give feedback.
All reactions