Skip to content

Commit

Permalink
refactor: Drop half implemented url prop on LocationProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Sep 2, 2024
1 parent 79af1e3 commit c624b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const exec = (url, route, matches) => {
};

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

const value = useMemo(() => {
Expand Down

0 comments on commit c624b01

Please sign in to comment.