We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
useQueryState
1 parent a3a11ac commit 8b88bafCopy full SHA for 8b88baf
client/src/hooks/useQueryState.ts
@@ -18,7 +18,8 @@ export function useQueryState<T>(
18
) {
19
function getQueryValue() {
20
const searchParams = new URLSearchParams(window.location.search);
21
- return searchParams.get(key);
+ const param = searchParams.get(key);
22
+ return param === null ? null : decodeURIComponent(param);
23
}
24
function processQueryValue(queryValue: string | null) {
25
return queryValue === null ? null : processor.fromString(queryValue);
notes.md
@@ -1,6 +1 @@
1
-# TODO:
2
-
3
-- multiple selections for filter infinite loop problem
4
-- diff problem and duplicate id(s)
5
6
psql -d postgres -c 'create database repliear2'
0 commit comments