Fix warning in `useNowThatUpdatesEveryMinute`

This commit is contained in:
Evan Hahn 2022-03-08 18:06:44 -06:00 committed by GitHub
parent 0f85335af1
commit 699720b38e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import { useEffect, useState } from 'react';
import { MINUTE } from '../util/durations';
const ev = new EventEmitter();
ev.setMaxListeners(Infinity);
setInterval(() => ev.emit('tick'), MINUTE);
export function useNowThatUpdatesEveryMinute(): number {