fetch and http requests #154
Labels
effort/days
Estimated to take multiple days, but less than a week
kind/maintenance
Work required to avoid breaking changes or harm to project's status quo
status/blocked
Unable to be worked further until needs are met
Projects
This module exposes a HTTP class that lets you make HTTP requests. It accepts and returns interfaces from the browser fetch spec. Internally it juggles multiple fetch implementations between browsers, node, electron, and react native.
The types of all of these implementations differ to the degree that they are largely incompatible which means we
@ts-ignore
a bunch of stuff which lets us move on but gives us no type safety and causes all sorts of weird bugs and code gymnastics in other parts of the codebase.We don't use or need the entirety of the fetch specification. Instead lets stop trying to be a general-purpose polymorphic fetch implementation and instead just expose the bits of the fetch API we use and have each implementation just service those bits.
The text was updated successfully, but these errors were encountered: