Skip to content

Commit

Permalink
Merge branch 'main' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
thejohnhoffer committed Jan 25, 2022
2 parents 7f90c8e + a00a903 commit 9e9b245
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ function inHistoryWrapper(x: string | symbol): boolean {
const makeArgsEncoder = (encode: Parser) => {
return (fn: StateFunction) => {
return (...[_s, _t, url]: StateArgs) => {
if (!url) {
return fn(_s, _t, url);
}
const path = parsePath((url || "").toString());
const hash = parse(encode, path.hash);
return fn(_s, _t, createPath({ ...path, hash }));
Expand Down

0 comments on commit 9e9b245

Please sign in to comment.