Thanks to @guoyunhe there is now a hook for reading and writing search parameters (see #503).
import { useSearchParams } from "wouter";
const [searchParams, setSearchParams] = useSearchParams();
// Read params
searchParams.get('active'); // 'true'
// Update params
setSearchParams(prev => {
prev.set('active', 'false');
return prev;
});