File tree 2 files changed +0
-4
lines changed
2 files changed +0
-4
lines changed Original file line number Diff line number Diff line change 1
- import { revalidateTag } from 'next/cache'
2
1
import type { RequestWithJSONBody } from '@mx-space/webhook'
3
2
import type { NextRequest } from 'next/server'
4
3
@@ -38,7 +37,6 @@ export const POST = async (nextreq: NextRequest) => {
38
37
case BusinessEvents . NOTE_CREATE :
39
38
case BusinessEvents . NOTE_DELETE :
40
39
case BusinessEvents . NOTE_UPDATE : {
41
- revalidateTag ( 'note' )
42
40
return res . status ( 200 ) . send ( 'OK' )
43
41
}
44
42
}
Original file line number Diff line number Diff line change 1
1
import { useMutation } from '@tanstack/react-query'
2
2
import dayjs from 'dayjs'
3
- import { revalidateTag } from 'next/cache'
4
3
import type { NoteModel , NoteWrappedPayload } from '@mx-space/api-client'
5
4
import type { NoteDto } from '~/models/writing'
6
5
@@ -95,7 +94,6 @@ export const useCreateNote = () => {
95
94
} )
96
95
} ,
97
96
onSuccess : ( ) => {
98
- revalidateTag ( 'note' )
99
97
toast . success ( '创建成功' )
100
98
resetAutoSaver ( 'note' )
101
99
} ,
You can’t perform that action at this time.
0 commit comments