Skip to content

Commit

Permalink
Deprecate useDataRefresh (sergiodxa#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa authored Jan 12, 2023
1 parent 53bcbcc commit 8109df0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/react/use-data-refresh.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { useFetcher } from "@remix-run/react";
import { useCallback, useMemo } from "react";

/**
* @deprecated Use the `useRevalidator` hook from `@remix-run/react`.
*
* Trigger a refresh of the current routes loaders.
*
* This work by sending a `POST` request with a fetcher.submit to /dev/null in
Expand Down

0 comments on commit 8109df0

Please sign in to comment.