Kenta Iwasaki
Kenta Iwasaki
There are a lot of cases where polyfilling fetch and adding additional behavior based on i.e. URL would break a lot of behavior in other libraries. It would be safer...
I would propose keeping around httpClient to allow a custom fetch to be used by the client. There are several environments (whether during run time or at build time or...
Wouldn’t it be possible to try-catch errors or check response.status directly from the Response returned by fetch?
There is a lot of warranted controversy to replacing globals like `fetch`. Frameworks like React and Svelte have at one point patched the global `fetch` function and have subsequently reverted...
@spinda [unknown, …unknown[]] represents a non-empty tuple type - casting to it needs to be done carefully though.