We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1ad9b8 commit ca3e712Copy full SHA for ca3e712
apps/mobile/app/travel/[id]/form/page.tsx
@@ -13,6 +13,7 @@ import { motion } from 'framer-motion';
13
import styles from './page.module.css';
14
import useSWR from 'swr';
15
import { TravelFormData } from '@withbee/types';
16
+import { mutate } from 'swr';
17
18
function TravelFormContent() {
19
const [editedTravel, setEditedTravel] = useState<TravelFormData | null>(null);
@@ -43,6 +44,7 @@ function TravelFormContent() {
43
44
);
45
46
if (response) {
47
+ mutate((key: string) => key.startsWith('travelList'));
48
showToast.success({ message: '여행이 편집이 완료되었습니다.' });
49
router.push(`/travel/${params.id}`);
50
} else {
0 commit comments