Skip to content

Commit

Permalink
(fix) - fix test by defaulting to an empty object
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Aug 20, 2019
1 parent 317be7c commit d690ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useSubscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const useSubscription = <T = any, R = T, V = object>(
unsubscribe.current();

[unsubscribe.current] = pipe(
client.executeSubscription(request, args.context),
client.executeSubscription(request, args.context || {}),
subscribe(({ data, error, extensions }) => {
setState(s => ({
fetching: true,
Expand Down

0 comments on commit d690ccb

Please sign in to comment.