Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(trpc): use fetch fn that directs to window.fetch
By default, tRPC will retain its own reference to window.fetch on init. Any changes to or replacements of window.fetch would not be picked up by tRPC, which will affect eg, instrumentation by Datadog RUM. Fix this by supplying our own fetch implementation that delegates to whatever is the current global `fetch()`.
- Loading branch information