perf: add database indexes & minor frontend/backend improvements (#2396)

This commit is contained in:
fallenbagel
2026-02-09 17:06:53 +05:00
committed by GitHub
parent 186998b888
commit a44a3b1e14
11 changed files with 389 additions and 9 deletions

View File

@@ -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';

View File

@@ -202,7 +202,7 @@ const UserWebPushSettings = () => {
if (user?.id) {
verifyWebPush();
}
}, [user?.id, currentSettings]);
}, [user?.id, currentSettings, dataDevices]);
useEffect(() => {
const getSubscriptionEndpoint = async () => {

View File

@@ -83,6 +83,8 @@ const useDiscover = <
{
initialSize: 3,
revalidateFirstPage: false,
dedupingInterval: 30000,
revalidateOnFocus: false,
}
);