Skip to content

Commit c624b01

Browse files
committed
refactor: Drop half implemented url prop on LocationProvider
1 parent 79af1e3 commit c624b01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const exec = (url, route, matches) => {
7171
};
7272

7373
export function LocationProvider(props) {
74-
const [url, route] = useReducer(UPDATE, props.url || location.pathname + location.search);
74+
const [url, route] = useReducer(UPDATE, location.pathname + location.search);
7575
const wasPush = push === true;
7676

7777
const value = useMemo(() => {

0 commit comments

Comments
 (0)