Buckets:
| "use client"; | |
| import { useFormStatus } from "react-dom"; | |
| import revalidate from "./server-actions"; | |
| function RevalidateButton() { | |
| const { pending } = useFormStatus(); | |
| return ( | |
| <button | |
| className="revalidate-from-button" | |
| type="submit" | |
| disabled={pending} | |
| aria-disabled={pending} | |
| > | |
| Revalidate | |
| </button> | |
| ); | |
| } | |
| export function RevalidateFrom() { | |
| return ( | |
| <form className="revalidate-from" action={revalidate}> | |
| <RevalidateButton /> | |
| </form> | |
| ); | |
| } | |
Xet Storage Details
- Size:
- 507 Bytes
- Xet hash:
- 6f96ddf0a7cff65a1be4e132965fc46e6e9c43456b602bcbdc9f557d7f812009
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.