perf: add database indexes & minor frontend/backend improvements (#2396)
This commit is contained in:
@@ -19,7 +19,7 @@ import type {
|
||||
WatchProviderDetails,
|
||||
} from '@server/models/common';
|
||||
import axios from 'axios';
|
||||
import { orderBy } from 'lodash';
|
||||
import orderBy from 'lodash/orderBy';
|
||||
import { useEffect, useMemo, useState } from 'react';
|
||||
import { useIntl } from 'react-intl';
|
||||
import type { MultiValue, SingleValue } from 'react-select';
|
||||
|
||||
@@ -202,7 +202,7 @@ const UserWebPushSettings = () => {
|
||||
if (user?.id) {
|
||||
verifyWebPush();
|
||||
}
|
||||
}, [user?.id, currentSettings]);
|
||||
}, [user?.id, currentSettings, dataDevices]);
|
||||
|
||||
useEffect(() => {
|
||||
const getSubscriptionEndpoint = async () => {
|
||||
|
||||
@@ -83,6 +83,8 @@ const useDiscover = <
|
||||
{
|
||||
initialSize: 3,
|
||||
revalidateFirstPage: false,
|
||||
dedupingInterval: 30000,
|
||||
revalidateOnFocus: false,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user