useSearchParams not working

Even though there is ?hey=hey search param, the proxy object is empty
5 Replies
KokoNeot
KokoNeotOP2y ago
KokoNeot
KokoNeotOP2y 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
KokoNeotOP2y ago
when I do props.hey it actually works thanks but its weird that it doesnt return already filled object
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server