You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
Similar idea to #2, however because fetch is so commonly poly-filled etc, perhaps this should offer a factory function that accepts fetch as well as a default that attempts to use window.fetch (as offered by the global environment).
// default exported `fetch` as from `Fetch(fetch)`.import{fetch}from`@armix/terror/fetch`;const$response=awaitfetch("/api/...",{ options });// create from your own polyfill and wrap with `Fetch(...)`import{Fetch}from`@armix/terror/fetch`;import{fetchas_fetch}from"fetch-polyfill";exportconstfetch=Fetch(_fetch);const$response=awaitfetch(...);
The text was updated successfully, but these errors were encountered:
Similar idea to #2, however because
fetch
is so commonly poly-filled etc, perhaps this should offer a factory function that acceptsfetch
as well as a default that attempts to usewindow.fetch
(as offered by the global environment).The text was updated successfully, but these errors were encountered: