Search

Nalezeno "fetch": 146

How to Cancel Pending API Requests to Show Correct Data


I recently had to create a widget in React that fetches data from multiple API endpoints. As the user clicks around, new data is fetched and marshalled into the UI. But it caused some problems. One problem quickly became evident: … The post How to Cancel Pending API Requests to Show Correct...

Fetch.ai Collaborates with IOTA - A Deep Dive


Fetch.ai finally announced entering into a partnership with IOTA for connecting the Autonomous Economic Agents with the resourceful data network of IOTA. The collaboration between Fetch.ai and IOTA resolves data discoverability by establishing a smooth, real-time, and seamless connection between...

Using AbortController as an Alternative for Removing Event Listeners


The idea of an “abortable” fetch came to life in 2017 when AbortController was released. That gives us a way to bail on an API request initiated by fetch() — even multiple calls — whenever we want. Here’s a super … The post Using AbortController as an Alternative for Removing Event Listeners...

Cloudinary Fetch with Eleventy (Respecting Local Development)


This is about a wildly specific combination of technologies — Eleventy, the static site generator, with pages with images on them that you ultimately want hosted by Cloudinary — but I just wanna document it as it sounds like a decent amount of people run into this situation. The deal: Cloudinary...

cookieStore: Async Cookie API


One pattern in the JavaScript API world that web development veterans will notice is that we’ve been creating new methods to accomplish what older, grosser APIs once achieved. XMLHttpRequest became the fetch API, some APIs like Battery became async, and there are dozens of other examples....

Netlify Edge Handlers


Some very cool news from Netlify: Edge Handlers are in Early Access (request it here). I think these couple of lines of code do a great job in explaining what an Edge Handler is: export function onRequest(event) { console.log(`Incoming request for ${event.request.url}`); ...

5 Awesome JavaScript Promise Tricks


The Promise API changed the game in JavaScript. We went from abusing setTimeouts and settling for synchronous operations to doing everything possible to leverage this new async API. Let’s check out a handful of awesome Promise API tricks! Cancel a fetch Request One problem we instantly...

Waves Tech Partners with Fetch.ai to Boost AI Services


DeFi focused blockchain ecosystem Waves Tech has announced a partnership with autonomous artificial intelligence accelerator Fetch.ai, to make AI solutions more accessible to multiple blockchain networks via the Gravity Protocol. Together, Waves Tech and Fetch.ai will conduct a joint R&D...

How to Cancel a Fetch Request


JavaScript promises have always been a major win for the language — they’ve led to a revolution of asynchronous coding that has vastly improved performance on the web. One shortcoming of native promises is that there’s no true way to cancel a fetch…until now. A...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace