mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-26 02:03:49 +02:00
refactor store
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
import { useFavoriteStore, useUserStore } from '../stores';
|
||||
import {
|
||||
handleFavoriteAdd,
|
||||
handleFavoriteDelete,
|
||||
handleFavoriteGroupClear
|
||||
} from '../coordinators/favoriteCoordinator';
|
||||
import { queryClient } from '../queries';
|
||||
import { request } from '../service/request';
|
||||
|
||||
@@ -63,7 +68,7 @@ const favoriteReq = {
|
||||
json,
|
||||
params
|
||||
};
|
||||
useFavoriteStore().handleFavoriteAdd(args);
|
||||
handleFavoriteAdd(args);
|
||||
refetchActiveFavoriteQueries();
|
||||
return args;
|
||||
});
|
||||
@@ -81,7 +86,7 @@ const favoriteReq = {
|
||||
json,
|
||||
params
|
||||
};
|
||||
useFavoriteStore().handleFavoriteDelete(params.objectId);
|
||||
handleFavoriteDelete(params.objectId);
|
||||
refetchActiveFavoriteQueries();
|
||||
return args;
|
||||
});
|
||||
@@ -145,7 +150,7 @@ const favoriteReq = {
|
||||
json,
|
||||
params
|
||||
};
|
||||
useFavoriteStore().handleFavoriteGroupClear(args);
|
||||
handleFavoriteGroupClear(args);
|
||||
refetchActiveFavoriteQueries();
|
||||
return args;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user