SolidJSS
SolidJS13mo ago
18 replies
quinnvaughn

useParams not updating with urql's createQuery

Currently refactoring a svelte project to Solid. I'm unable to get params to update inside the createQuery() call when you change the dynamic path (ie same route but different fst), which uses urql's solid library. I've tried multiple different variations of making params reactive and none of them seem to work. As you can see in the svelte snippet there, I had to make it derived state so it would update, but the equivalent of const derivedParams = () => params doesn't seem to work. Any thoughts?
Screenshot_2025-01-14_at_12.50.17_PM.png
Screenshot_2025-01-14_at_12.51.00_PM.png
Was this page helpful?