docs(fetch): add modern `Promise.allSettled` solution to fetch-users task by illia-m-b · Pull Request #3987 · javascript-tutorial/en.javascript.info
Repository navigation
docs(fetch): add modern Promise.allSettled solution to fetch-users task - #3987
Open
illia-m-b wants to merge 1 commit into javascript-tutorial:master from illia-m-b:patch-1
Open
docs(fetch): add modern Promise.allSettled solution to fetch-users task #3987
illia-m-b wants to merge 1 commit into
javascript-tutorial:master from
illia-m-b:patch-1
Conversation
illia-m-b commented Aug 5, 2026
Copy link Copy Markdown
Closes #3986
Description
Appends a production-grade alternative solution to the "Fetch users from GitHub" task.
Changes Made
- Appended an "Alternative modern approach" section to
solution.md. - Added a code snippet utilizing
Promise.allSettled, async callbacks, and object destructuring.
Technical Rationale
The original solution intentionally mixes .then() with await for educational purposes. This addition complements the lesson by demonstrating current industry best practices:
- Pure
async/awaitsyntax without chained Promise methods. - Graceful fault tolerance for network failures via
Promise.allSettled. - Independent, non-blocking fetch execution.
View reviewed changes
AKzar1el left a comment
Copy link Copy Markdown
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
One issue in the new runnable alternative: the request URL is malformed, so the example will not fetch the intended GitHub user endpoint. I inspected the PR's current source and the existing solution; I did not run the tutorial's test suite.
docs(fetch): add modern Promise.allSettled solution to fetch-users ...
b0e6413
...task (javascript-tutorial#3986)illia-m-b force-pushed the patch-1 branch from
55fed0a to
b0e6413
Compare
November 11, 2026 07:36
illia-m-b commented Nov 11, 2026
Copy link Copy Markdown
Author
|
@AKzar1el Thanks. I've addressed this. Please take a look when you have a moment. |