mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-05 06:09:57 -05:00
Adding name query param to Channel filter input so the search can survive a refresh.
This commit is contained in:
parent
97b214d387
commit
5b7aec59cc
3 changed files with 40 additions and 21 deletions
|
|
@ -92,6 +92,7 @@ export const useOneQuery = (name) => {
|
|||
const value = searchParams.get(name);
|
||||
|
||||
const setValue = (newValue) => {
|
||||
console.debug(`useOneQuery setValue=${newValue}`);
|
||||
updateQuery({[name]: newValue});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue