Remove enabling notifyOnNetworkStatusChange usages
Starting with v4 this flag is now enabled by default
This commit is contained in:
@@ -121,7 +121,7 @@ export function Extensions({ tabsMenuHeight }: { tabsMenuHeight: number }) {
|
||||
loading: areServerSettingsLoading,
|
||||
error: serverSettingsError,
|
||||
refetch: refetchServerSettings,
|
||||
} = requestManager.useGetServerSettings({ notifyOnNetworkStatusChange: true });
|
||||
} = requestManager.useGetServerSettings();
|
||||
const [fetchExtensions, { data, loading: areExtensionsLoading, error: extensionsError }] =
|
||||
requestManager.useExtensionListFetch();
|
||||
|
||||
|
||||
@@ -36,9 +36,7 @@ export const BrowseSettings = () => {
|
||||
|
||||
useAppTitle(t`Browse`);
|
||||
|
||||
const { data, loading, error, refetch } = requestManager.useGetServerSettings({
|
||||
notifyOnNetworkStatusChange: true,
|
||||
});
|
||||
const { data, loading, error, refetch } = requestManager.useGetServerSettings();
|
||||
const [mutateSettings] = requestManager.useUpdateServerSettings();
|
||||
|
||||
const updateSetting = <Setting extends keyof ExtensionsSettings>(
|
||||
|
||||
@@ -40,12 +40,7 @@ export function Sources({ tabsMenuHeight }: { tabsMenuHeight: number }) {
|
||||
settings: { showNsfw, lastUsedSourceId },
|
||||
} = useMetadataServerSettings();
|
||||
|
||||
const {
|
||||
data,
|
||||
loading: isLoading,
|
||||
error,
|
||||
refetch,
|
||||
} = requestManager.useGetSourceList({ notifyOnNetworkStatusChange: true });
|
||||
const { data, loading: isLoading, error, refetch } = requestManager.useGetSourceList();
|
||||
const sources = data?.sources.nodes ?? STABLE_EMPTY_ARRAY;
|
||||
const filteredSources = useMemo(
|
||||
() =>
|
||||
|
||||
Reference in New Issue
Block a user