Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
fix(usePageViewTrigger): mark params as optional (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer authored Jan 25, 2022
1 parent 3ab4937 commit 0829a5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/usePageViewTrigger/usePageViewTrigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
import * as React from 'react';

import { useBaseTrigger } from '../useBaseTrigger';
import { Events, Dispatch, DispatchFn } from '../../types';
import { Events, Dispatch } from '../../types';

export const usePageViewTrigger = (): DispatchFn => {
export const usePageViewTrigger = (): ((dispatchParams?: Dispatch) => void) => {
const dispatch = useBaseTrigger(Events.pageView);

const handleTrigger = React.useCallback(
Expand Down

0 comments on commit 0829a5d

Please sign in to comment.