-
Notifications
You must be signed in to change notification settings - Fork 21
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
[Feature] Allow providing your own implementation of fetch
#159
Comments
This would also be useful for general request/response interception use cases (headers, logging, etc). |
followed @clavery suggestion
Fetched can is now instrumented as expected and addressees missing requests https://docs.logrocket.com/docs/troubleshooting-sessions#network-requests-are-missing-or-not-being-recorded |
Application Performance Monitoring frameworks often want to spy on HTTP requests being made.
To to this, they typically need to monkey patch / override
fetch
.Currently its tricky to do this:
https://sfcc-unofficial.slack.com/archives/C01AWMT7GSZ/p1717714138887519
Ideally, we'd provide some way of providing
fetch
implementation, potentially as an additional param when creating an API client.The text was updated successfully, but these errors were encountered: