Skip to content

Commit

Permalink
switch useChannel arguments to prioritise dependencies over options
Browse files Browse the repository at this point in the history
  • Loading branch information
Harley Alexander committed Aug 17, 2019
1 parent 2d5ecd3 commit a832045
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/useChannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export function useChannel(
channelName: string,
eventName?: string,
onEvent?: (message: any) => void,
options?: useChannelOptions,
dependencies?: any[]
dependencies?: any[],
options?: useChannelOptions
) {
// errors for missing arguments
invariant(channelName, "channelName required to subscribe to a channel");
Expand Down

0 comments on commit a832045

Please sign in to comment.