silverwolf-x's picture
download
raw
388 Bytes
'use client'
import { useRouter } from 'next/navigation'
export default function RedirectClientComponent({ action }) {
const router = useRouter()
return (
<button
id="redirect-revalidate-client"
onClick={async () => {
await action()
router.push('/revalidate?foo=bar')
}}
>
redirect + revalidate (client component)
</button>
)
}

Xet Storage Details

Size:
388 Bytes
·
Xet hash:
ae692e33a78b031df290f1f5ec000d9cd4c3df165446c76eb7cdb922e9cb81a3

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.