useSearchParams not working

Even though there is ?hey=hey search param, the proxy object is empty
5 Replies
KokoNeot
KokoNeot2y ago
KokoNeot
KokoNeot2y ago
setting works fine from import { useSearchParams } from "@solidjs/router"
foolswisdom
foolswisdom2y ago
Is this code inside a route? Also, that effect won't rerun, because you're not accessing any of the properties of params Which is possibly causing your issue
KokoNeot
KokoNeot2y ago
when I do props.hey it actually works thanks but its weird that it doesnt return already filled object
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View