Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions documentation/docs/routing/hooks/use-navigation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,25 @@ const {
edit,
show,
clone,
push,
replace,
goBack,
listUrl,
createUrl,
editUrl,
showUrl,
cloneUrl,
} = useNavigation();

/*
Deprecated:
- push
- replace
- goBack

These methods were removed.
Use:
• useGo()
• useGetToPath()
• or router-native navigation (react-router: useNavigate)
*/
```

## Return Values
Expand Down Expand Up @@ -182,6 +192,10 @@ cloneUrl("posts", "1"); // It returns the `/posts/clone/1` URL
| showUrl | Method that returns the show page URL | `(resource: string, id: BaseKey, meta?: Record<string, any>) => string` |
| cloneUrl | Method that returns the clone page URL | `(resource: string, id: BaseKey, meta?: Record<string, any>) => string` |

git add documentation/docs/routing/hooks/use-navigation/index.md
git commit -m "docs(useNavigation): remove deprecated push/replace/goBack from docs (fix #7125)"
git push origin fix/docs/remove-deprecated-useNavigation-methods
Comment on lines +195 to +197
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn’t be here


#### Interfaces

- [`type BaseKey`][basekey]
Expand Down