Skip to content

Commit

Permalink
Stop unnecessarily exporting defaultOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
hwillson committed Aug 24, 2020
1 parent 3a499b6 commit ae00e04
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/__tests__/__snapshots__/exports.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ exports[`exports of public entry points @apollo/client/link/persisted-queries 1`
Array [
"VERSION",
"createPersistedQueryLink",
"defaultOptions",
]
`;

Expand Down
2 changes: 1 addition & 1 deletion src/link/persisted-queries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace PersistedQueryLink {
export type Options = SHA256Options | GenerateHashOptions;
}

export const defaultOptions = {
const defaultOptions = {
disable: ({ graphQLErrors, operation }: ErrorResponse) => {
// if the server doesn't support persisted queries, don't try anymore
if (
Expand Down

0 comments on commit ae00e04

Please sign in to comment.