Skip to content

Commit

Permalink
Merge pull request #5090 from specify/dev-notifs
Browse files Browse the repository at this point in the history
Adjust notification timing for development mode
  • Loading branch information
combs-a authored Jul 15, 2024
2 parents 4c32cd4 + 2fc2223 commit df4eccd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ import { ajax } from '../../utils/ajax';
import { formatDateForBackEnd } from '../../utils/parser/dateFormat';
import type { IR, RA } from '../../utils/types';
import { sortFunction } from '../../utils/utils';
import { MINUTE, SECOND } from '../Atoms/timeUnits';
import { formatUrl } from '../Router/queryString';
import type { GenericNotification } from './NotificationRenderers';

const INITIAL_INTERVAL = 5000;
const INITIAL_INTERVAL =
process.env.NODE_ENV === 'development' ? MINUTE : 5 * SECOND;
const INTERVAL_MULTIPLIER = 1.1;

export function useNotificationsFetch({
Expand Down

0 comments on commit df4eccd

Please sign in to comment.