shellphone.app/app/features/core/hooks/use-revalidate.ts

7 lines
198 B
TypeScript
Raw Normal View History

import { useFetcher } from "@remix-run/react";
export default function useRevalidate() {
const fetcher = useFetcher();
return () => fetcher.submit({}, { method: "post", action: "/dev/null" });
}