FujoWebDev / FujoWebDev/AO3.js

Consider using Ky to make our fetch examples better/more understandable

Open
#134 0 comments 0 reactions 0 assignees View on GitHub
📖 documentation
Dominant language
TypeScript
Stars
47
Forks
18
PR merge metrics
No merged PRs in 30d

Description

KY ("a tiny and elegant HTTP client based on the Fetch API") by [sindresorhus](https://github.com/sindresorhus) literally _just_ got a cool context API and [a bunch of options around retries](https://github.com/sindresorhus/ky?tab=readme-ov-file#retry) that are way more readable than the scary mess i suggest using at the bottom of this repo's README.

Since KY library is compatible with fetch, I suspect it would be trivial to pass it to `setFetchers` and give people a much easier and more understandable example of how to deal with timeouts retries etc.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.