Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Using promise.all to update states
Post Body

Hello, so I was watching an interview for a mid level job and when it was time to update to states, they said it was better to do it in a Promise.all([setState1(), setState2()]) and I wanted to know how much better it was, its pros and cons... just wondering. Still a junior here

Edit:

This is the code: https://imgur.com/a/XKxWRF2

This is the interview: https://www.youtube.com/watch?v=D36HU7LpTCk&ab_channel=TheDevEnvironment

Author
Account Strength
80%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
97
Link Karma
51
Comment Karma
46
Profile updated: 3 days ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago