I have made an error boundary component in my remix app and have a retry button in it. But how do I add the functionality of reload? error boundary component is in root.tsx.
Remember, Remix uses react-router under the hood.
const navigate = useNavigate()
const handleClick = () => {
navigate('.', { replace: true })
}
https://reactrouter.com/docs/en/v6/hooks/use-navigate
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With