'How to recover from error in react-location
How would one recover from an error in the errorElement. Like is there a way to force the reload of a route?
Currently my errorElement looks like this.
import { useMatch } from "react-location";
export function ApplicationsTableBodyError() {
const { error } = useMatch();
return <p>Our server is having an issue - {error.message}. Try reloading the page.</p>;
}
I would like to put a button there and do something like route.reload() that only triggers the loader for that child route.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
