Skip to content

Commit

Permalink
Fix useNavigate documentation – missing call useNavigate in example (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipJirsak committed Sep 14, 2022
1 parent 24577fe commit 3958b8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Expand Up @@ -24,6 +24,7 @@
- elanis
- elylucas
- emzoumpo
- FilipJirsak
- frontsideair
- fz6m
- gianlucca
Expand Down
2 changes: 2 additions & 0 deletions docs/hooks/use-navigate.md
Expand Up @@ -13,6 +13,8 @@ import { useNavigate } from "react-router-dom";

function useLogoutTimer() {
const userIsInactive = useFakeInactiveUser();
const navigate = useNavigate();


useEffect(() => {
if (userIsInactive) {
Expand Down

0 comments on commit 3958b8b

Please sign in to comment.