Skip to content

Commit ca3e712

Browse files
committed
[fix/TK-212]:여행 편집 완료 시 여행 리시트 즉시 반영
1 parent b1ad9b8 commit ca3e712

File tree

1 file changed

+2
-0
lines changed
  • apps/mobile/app/travel/[id]/form

1 file changed

+2
-0
lines changed

apps/mobile/app/travel/[id]/form/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { motion } from 'framer-motion';
1313
import styles from './page.module.css';
1414
import useSWR from 'swr';
1515
import { TravelFormData } from '@withbee/types';
16+
import { mutate } from 'swr';
1617

1718
function TravelFormContent() {
1819
const [editedTravel, setEditedTravel] = useState<TravelFormData | null>(null);
@@ -43,6 +44,7 @@ function TravelFormContent() {
4344
);
4445

4546
if (response) {
47+
mutate((key: string) => key.startsWith('travelList'));
4648
showToast.success({ message: '여행이 편집이 완료되었습니다.' });
4749
router.push(`/travel/${params.id}`);
4850
} else {

0 commit comments

Comments
 (0)