Skip to content

Commit

Permalink
Added polling to event data page queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Gibson42 committed Nov 14, 2020
1 parent 0d8e458 commit 1be2624
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/admin-web/src/screens/EventData/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ const EventData: React.FC<{match: any}> = ({match}: any) => {
loading: eventLoading,
error: eventError,
data: eventData,
}: any = useEventsWithKeyQuery({variables: { urlKey: eventUrlKey }});
}: any = useEventsWithKeyQuery({pollInterval: 500, variables: { urlKey: eventUrlKey }});

const {
loading: yearEventsLoading,
error: yearEventsError,
data: yearEventsData,
}: any = useYearEventsQuery();
}: any = useYearEventsQuery({pollInterval: 500});

useEffect(() => {
if (eventLoading)
Expand Down

0 comments on commit 1be2624

Please sign in to comment.