Skip to content

Commit 8b88baf

Browse files
committed
fix missing decode in useQueryState
1 parent a3a11ac commit 8b88baf

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

client/src/hooks/useQueryState.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ export function useQueryState<T>(
1818
) {
1919
function getQueryValue() {
2020
const searchParams = new URLSearchParams(window.location.search);
21-
return searchParams.get(key);
21+
const param = searchParams.get(key);
22+
return param === null ? null : decodeURIComponent(param);
2223
}
2324
function processQueryValue(queryValue: string | null) {
2425
return queryValue === null ? null : processor.fromString(queryValue);

notes.md

-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
# TODO:
2-
3-
- multiple selections for filter infinite loop problem
4-
- diff problem and duplicate id(s)
5-
61
psql -d postgres -c 'create database repliear2'

0 commit comments

Comments
 (0)