💬 How are you using generics in your TypeScript projects?
💬 How are you using generics in your TypeScript projects?
await fetchData() as Type
await fetchData() as Type
youtu.be/ryhlhAQMDbM?...
#angular #angulardeveloper @angulardiscord.bsky.social #developerorium #apiintegration #restapis #fetchdata
youtu.be/ryhlhAQMDbM?...
#angular #angulardeveloper @angulardiscord.bsky.social #developerorium #apiintegration #restapis #fetchdata
codesandbox.io/p/devbox/rea...
codesandbox.io/p/devbox/rea...
🛠️ Rename `fetchData(query)` to `fetchData({ query })`
🤖 Prompt an AI agent 12 times until the mocks are magically fixed
🐞 Oups! We just shipped a bug.
✨ There's a better way.
👉 Full video on #Angular Fakes here: youtu.be/dXyiOUzdmKk
🛠️ Rename `fetchData(query)` to `fetchData({ query })`
🤖 Prompt an AI agent 12 times until the mocks are magically fixed
🐞 Oups! We just shipped a bug.
✨ There's a better way.
👉 Full video on #Angular Fakes here: youtu.be/dXyiOUzdmKk
const [data, setData] = useState(() => fetchData());
return (
<>
<div>{use(data)}</div>
<button onClick={() => setData(fetchOtherData())}>Click</button>
</>
);
}
This pattern is pretty nice to get a stable promise that can be updated at whenever.
const [data, setData] = useState(() => fetchData());
return (
<>
<div>{use(data)}</div>
<button onClick={() => setData(fetchOtherData())}>Click</button>
</>
);
}
This pattern is pretty nice to get a stable promise that can be updated at whenever.
Let's start with my favorite – the elegance of completion handlers!
Let's start with my favorite – the elegance of completion handlers!
🧠 Benefits: with infer, you can extract return types from any function without repeating yourself!
Instead of manually extracting types ⛔️
🧠 Benefits: with infer, you can extract return types from any function without repeating yourself!
Instead of manually extracting types ⛔️
codesandbox.io/p/devbox/rea...
codesandbox.io/p/devbox/rea...
Write cleaner, faster, and smarter backend code with Node.js. 1️⃣ Setup & Initialization Initialize a new Node.js project: npm init -y Install dependencies: npm install express mongoose dotenv Run a file: node app.js 2️⃣ Asynchronous Programming Use `async/await`…
Write cleaner, faster, and smarter backend code with Node.js. 1️⃣ Setup & Initialization Initialize a new Node.js project: npm init -y Install dependencies: npm install express mongoose dotenv Run a file: node app.js 2️⃣ Asynchronous Programming Use `async/await`…
CVE ID : CVE-2026-44286
Published : May 8, 2026, 11:16 p.m. | 1 hour, 28 minutes ago
Description : FastGPT is an AI Agent building platform. Prior to version 4.14.17...
CVE ID : CVE-2026-44286
Published : May 8, 2026, 11:16 p.m. | 1 hour, 28 minutes ago
Description : FastGPT is an AI Agent building platform. Prior to version 4.14.17...
Async/await lets you write cleaner code when working with promises.
Compare these two approaches:
#1
fetchData().then(response => console.log(response));
#2
const response = await fetchData();
console.log(response);
Async/await lets you write cleaner code when working with promises.
Compare these two approaches:
#1
fetchData().then(response => console.log(response));
#2
const response = await fetchData();
console.log(response);
- Resources that dynamically fetch async data are state.
So, don't do
const data = fetchData(url)
See next tweet for what you should do.
- Resources that dynamically fetch async data are state.
So, don't do
const data = fetchData(url)
See next tweet for what you should do.
Curious about the decision to use `usaAsyncData` composable and `refresh` to watch for preview token changes for some pages (github.com/craftcms/sta...) vs a custom `fetchData` function in others? (github.com/craftcms/sta...)
Curious about the decision to use `usaAsyncData` composable and `refresh` to watch for preview token changes for some pages (github.com/craftcms/sta...) vs a custom `fetchData` function in others? (github.com/craftcms/sta...)
Do you use singleflight? what for?
Do you use singleflight? what for?
Node.js is a powerful JavaScript runtime that enables developers to build scalable, high-performance backend applications. This roadmap covers essential concepts, tools, and best practices for becoming a proficient Node.js developer. ✅ 1.…
Node.js is a powerful JavaScript runtime that enables developers to build scalable, high-performance backend applications. This roadmap covers essential concepts, tools, and best practices for becoming a proficient Node.js developer. ✅ 1.…
By: jweasyte on Monday, July 21, 2025
By: jweasyte on Monday, July 21, 2025