File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 1
- // from react-router-dom examples
1
+ // taken from react-router-dom examples
2
2
import { useMemo } from 'react' ;
3
3
import { useLocation } from 'react-router-dom' ;
4
4
5
5
export const useQuery = ( ) => {
6
6
const { search } = useLocation ( ) ;
7
7
8
- // return () => new URLSearchParams(search);
9
8
return useMemo ( ( ) => new URLSearchParams ( search ) , [ search ] ) ;
10
9
} ;
Original file line number Diff line number Diff line change @@ -32,9 +32,6 @@ const HomePage: React.FC = () => {
32
32
const navigate = useNavigate ( ) ;
33
33
const query = useQuery ( ) ;
34
34
35
- // console.log('HIT', query);
36
- // console.log('HIT2', query.get(''));
37
-
38
35
const { dispatch, service } = useAppContext ( ) ;
39
36
40
37
const [ serviceUrl , setServiceUrl ] = useState < string > ( '' ) ;
You can’t perform that action at this time.
0 commit comments