Skip to content

Commit

Permalink
useMyNavigate
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackRam-oss committed Aug 21, 2024
1 parent 502b462 commit 9cc2774
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utility/useMyNavigate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { NavigateFunction, NavigateOptions, To, useNavigate } from "react-router-dom";

/**
* https://pixi-vn.web.app/advanced/intercept-events.html#back-and-forward-buttons
*/
export function useMyNavigate(): NavigateFunction {
const navigate = useNavigate();

Expand Down

0 comments on commit 9cc2774

Please sign in to comment.