Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type ClientOptions = {
headers?: HeadersInit
defaults?: ReactClientDefaults
cacheOptions?: CacheOptions
fetch?: typeof globalThis.fetch
}

// TODO
Expand All @@ -33,6 +34,7 @@ function createQueryFetcher (options: ClientOptions): QueryFetcher {
{ query, variables, operationName },
fetchOptions
) {
const fetch = options.fetch ?? globalThis.fetch
const response = await fetch(options.url, {
method: "POST",
headers: {
Expand Down