Javascript – useNavigate does not replace my dynamic parameter
On our project, we were using version 4 of react-router, and we have migrated to version 6. However, we are encountering an issue that I cannot identify since the change from the useLocation API to useNavigate. Here's my function: import…