Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] - 5차 스프린트 QA 반영 1차 (시모) #485

Merged
merged 6 commits into from
Sep 27, 2024
2 changes: 1 addition & 1 deletion frontend/src/queries/useDeleteTravelPlan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const useDeleteTravelPlan = () => {
onSuccess: () => {
queryClient
.invalidateQueries({
queryKey: QUERY_KEYS_MAP.travelPlan.all,
queryKey: QUERY_KEYS_MAP.travelPlan.me(),
refetchType: "inactive",
})
.then(() => navigation(ROUTE_PATHS_MAP.my));
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/queries/useDeleteTravelogue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const useDeleteTravelogue = () => {
onSuccess: () => {
queryClient
.invalidateQueries({
queryKey: QUERY_KEYS_MAP.travelogue.all,
queryKey: QUERY_KEYS_MAP.travelogue.me(),
refetchType: "inactive",
})
.then(() => {
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/queries/usePostTravelPlan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { QUERY_KEYS_MAP } from "@constants/queryKey";

export const usePostTravelPlan = () => {
const queryClient = useQueryClient();

const { isPaused, ...rest } = useMutation<
AxiosResponse<TravelPlanResponse & { id: number }, unknown>,
ApiError | AxiosError<ErrorResponse>,
Expand Down Expand Up @@ -42,7 +43,7 @@ export const usePostTravelPlan = () => {
}),
onSuccess: () => {
queryClient.invalidateQueries({
queryKey: QUERY_KEYS_MAP.travelPlan.all,
queryKey: QUERY_KEYS_MAP.travelPlan.me(),
refetchType: "inactive",
});
},
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/queries/usePostTravelogue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { QUERY_KEYS_MAP } from "@constants/queryKey";

export const usePostTravelogue = () => {
const queryClient = useQueryClient();

const { isPaused, ...rest } = useMutation<
AxiosResponse<TravelogueResponse, unknown>,
ApiError | AxiosError<ErrorResponse>,
Expand All @@ -33,7 +34,7 @@ export const usePostTravelogue = () => {
}),
onSuccess: () => {
queryClient.invalidateQueries({
queryKey: QUERY_KEYS_MAP.travelogue.all,
queryKey: QUERY_KEYS_MAP.travelogue.me(),
refetchType: "inactive",
});
},
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/queries/usePutTravelPlan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ interface MutationFnVariables {

export const usePutTravelPlan = () => {
const queryClient = useQueryClient();

return useMutation<
AxiosResponse<TravelPlanResponse & { id: number }, unknown>,
ApiError | AxiosError<ErrorResponse>,
Expand Down Expand Up @@ -46,7 +47,7 @@ export const usePutTravelPlan = () => {
}),
onSuccess: () => {
queryClient.invalidateQueries({
queryKey: QUERY_KEYS_MAP.travelPlan.all,
queryKey: QUERY_KEYS_MAP.travelPlan.me(),
refetchType: "inactive",
});
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/queries/usePutTravelogue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const usePutTravelogue = () => {
}),
onSuccess: () => {
queryClient.invalidateQueries({
queryKey: QUERY_KEYS_MAP.travelogue.all,
queryKey: QUERY_KEYS_MAP.travelogue.me(),
refetchType: "inactive",
});
},
Expand Down
Loading