import { useNavigate } from 'react-router-dom'
const navigate = useNavigate()
navigate('/sign-in', { replace: true })
Using replace true, the browser not allow back to back page after to navigate to sign-in route, how the example.
import { useNavigate } from 'react-router-dom'
const navigate = useNavigate()
navigate('/sign-in', { replace: true })
Using replace true, the browser not allow back to back page after to navigate to sign-in route, how the example.