| LCOV - code coverage report | ||||||||||||||||||
|
||||||||||||||||||
Line data Source code 1 : import * as React from 'react'; 2 : import { useLocation, useNavigate } from 'react-router-dom'; 3 : 4 1 : export function RouterReset() { 5 1 : const navigate = useNavigate(); 6 1 : const location = useLocation(); 7 : 8 1 : React.useEffect(() => { 9 1 : if (location.state) { 10 1 : navigate(location.pathname + location.search, { state: null }); 11 : } 12 1 : }, []); 13 : 14 1 : return null; 15 1 : } |
| Generated by: LCOV version 2.0-1 |