Skip to content

Commit

Permalink
move displayName to context var
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Mar 3, 2021
1 parent abbf58e commit 3980359
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/preact-urql/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const defaultClient = createClient({ url: '/graphql' });
export const Context = createContext<Client>(defaultClient);
export const Provider = Context.Provider;
export const Consumer = Context.Consumer;
Provider.displayName = 'UrqlProvider';
Context.displayName = 'UrqlContext';

let hasWarnedAboutDefault = false;

Expand Down
2 changes: 1 addition & 1 deletion packages/react-urql/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const defaultClient = createClient({ url: '/graphql' });
export const Context = createContext<Client>(defaultClient);
export const Provider = Context.Provider;
export const Consumer = Context.Consumer;
Provider.displayName = 'UrqlProvider';
Context.displayName = 'UrqlContext';

let hasWarnedAboutDefault = false;

Expand Down

0 comments on commit 3980359

Please sign in to comment.