Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Provide original, unpatched fetch impl on globalThis #140

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

rschristian
Copy link
Member

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.

@rschristian rschristian mentioned this pull request Sep 12, 2024
@rschristian rschristian merged commit db487cf into main Sep 13, 2024
1 check passed
@rschristian
Copy link
Member Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants