Skip to content

Commit

Permalink
fix(use-hash-param): fix wrong url in setter
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed May 19, 2022
1 parent 43d3aac commit 8e192d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/use-hash-param.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const link = (hashParam, value) => {
hashParam
? (v) => {
setParam(v);
history.pushState({}, '', link(v));
history.pushState({}, '', link(hashParam, v));
}
: setParam,
[hashParam]
Expand Down

0 comments on commit 8e192d9

Please sign in to comment.