Skip to content

Commit 520c8d0

Browse files
authored
Update SanityLive.tsx
1 parent a4fc5cc commit 520c8d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

next-15/src/app/SanityLive.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

33
import {client} from '@/sanity/client'
4-
import type {LiveEvent, LiveEventMessage, LiveEventRestart, LiveEventWelcome} from '@sanity/client'
4+
import type {LiveEvent} from '@sanity/client'
55
import {CorsOriginError} from '@sanity/client'
66
import {useRouter} from 'next/navigation'
77
import {useEffect} from 'react'
@@ -18,7 +18,7 @@ export function SanityLive() {
1818
console.info('Sanity is live with automatic revalidation of published content')
1919
break
2020
case 'message':
21-
expireTags((event as LiveEventMessage).tags)
21+
expireTags(event.tags)
2222
break
2323
case 'reconnect':
2424
case 'restart':

0 commit comments

Comments
 (0)