originalFetch? vanillaFetch? Fetch? Naming is hard, certainly looking for better names if ya got 'em.
Current setup makes it a bit more verbose to provide your own fetch impl, as we override without providing any way for consumers to get the original. You'd have to add globalThis.unpatchedFetch = globalThis.fetch; into your Vite config file for later retrieval in your app, which isn't ideal.
originalFetch
?vanillaFetch
?Fetch
? Naming is hard, certainly looking for better names if ya got 'em.Current setup makes it a bit more verbose to provide your own fetch impl, as we override without providing any way for consumers to get the original. You'd have to add
globalThis.unpatchedFetch = globalThis.fetch;
into your Vite config file for later retrieval in your app, which isn't ideal.