Remove enabling notifyOnNetworkStatusChange usages
Starting with v4 this flag is now enabled by default
This commit is contained in:
@@ -44,9 +44,7 @@ export const MigrationSelectDestinationSources = () => {
|
||||
loading: areSourcesLoading,
|
||||
error: sourceError,
|
||||
refetch: refetchSources,
|
||||
} = requestManager.useGetSourceList({
|
||||
notifyOnNetworkStatusChange: true,
|
||||
});
|
||||
} = requestManager.useGetSourceList();
|
||||
|
||||
const allSources = data?.sources.nodes ?? STABLE_EMPTY_ARRAY;
|
||||
const sources = useMemo(
|
||||
|
||||
@@ -58,7 +58,7 @@ export const MigrationSelectMangas = () => {
|
||||
} = requestManager.useGetSource<GetSourceMigratableQuery, GetSourceMigratableQueryVariables>(
|
||||
GET_SOURCE_MIGRATABLE,
|
||||
sourceId ?? '',
|
||||
{ skip: !sourceIds, notifyOnNetworkStatusChange: true },
|
||||
{ skip: !sourceIds },
|
||||
);
|
||||
|
||||
const {
|
||||
@@ -68,7 +68,6 @@ export const MigrationSelectMangas = () => {
|
||||
refetch: refetchMangas,
|
||||
} = requestManager.useGetMigratableSourceMangas(sourceId!, {
|
||||
skip: !sourceIds,
|
||||
notifyOnNetworkStatusChange: true,
|
||||
});
|
||||
|
||||
const mangas = migratableSourceMangasData?.mangas.nodes ?? STABLE_EMPTY_ARRAY;
|
||||
|
||||
@@ -91,9 +91,7 @@ export const MigrationSelectSource = ({ tabsMenuHeight }: { tabsMenuHeight: numb
|
||||
);
|
||||
const { sortBy, sortOrder } = migrateSortSettings;
|
||||
|
||||
const { data, loading, error, refetch } = requestManager.useGetMigratableSources({
|
||||
notifyOnNetworkStatusChange: true,
|
||||
});
|
||||
const { data, loading, error, refetch } = requestManager.useGetMigratableSources();
|
||||
const migratableSources = useMemo(
|
||||
() => getMigratableSources(data?.mangas.nodes, migrateSortSettings),
|
||||
[data?.mangas.nodes, migrateSortSettings],
|
||||
|
||||
Reference in New Issue
Block a user