Tagged articles
5 articles
Page 1 of 1
JavaScript
JavaScript
Dec 29, 2025 · Frontend Development

Master Concurrent JavaScript: Replace Promise.all with Promise.allSettled

While Promise.all is the traditional way to run multiple asynchronous operations in JavaScript, it aborts the whole batch when any promise rejects, making it impossible to know which calls succeeded; Promise.allSettled overcomes this by waiting for all promises and providing a detailed status for each result.

AsynchronousJavaScriptPromise
0 likes · 5 min read
Master Concurrent JavaScript: Replace Promise.all with Promise.allSettled
JavaScript
JavaScript
Nov 14, 2025 · Frontend Development

Can You Replace try…catch with a Go‑Style Helper in JavaScript?

This article explains how async/await simplifies asynchronous JavaScript but still forces repetitive try…catch blocks, and introduces a Go‑inspired helper function that returns an [error, data] tuple to flatten error handling, improve readability, and work seamlessly with Promise.all.

Code RefactoringError HandlingGo style
0 likes · 8 min read
Can You Replace try…catch with a Go‑Style Helper in JavaScript?
JavaScript
JavaScript
Jun 24, 2025 · Frontend Development

How to Replace Nested try…catch in JavaScript with Go‑Style Error Handling

This article explains how async/await simplifies asynchronous JavaScript, reveals the pitfalls of repeatedly nesting try…catch blocks, and introduces a Go‑inspired error‑handling helper that returns [error, data] tuples, enabling flatter, more readable code and seamless integration with Promise.all for concurrent operations.

Error HandlingGo styleJavaScript
0 likes · 9 min read
How to Replace Nested try…catch in JavaScript with Go‑Style Error Handling
KooFE Frontend Team
KooFE Frontend Team
Oct 16, 2022 · Frontend Development

How to Optimize Data Fetching in React for Better Performance

Learn how to optimize data fetching in React by understanding initial vs on‑demand requests, avoiding waterfall patterns, leveraging Promise.all, parallel promises, data providers, and browser limits, while applying best practices for useEffect, lifecycle handling, and performance‑focused component design.

Data FetchingPromise.allReact
0 likes · 26 min read
How to Optimize Data Fetching in React for Better Performance