Skip to content

Conversation

@MichaHuhn
Copy link
Contributor

Update the route query through the Vue router instead of useUrlSearchParams() from VueUse.

useUrlSearchParams() is great when reading and writing to search params like this:

const params = useUrlSearchParams('history')

console.log(params.version) // '1.0'

params.version = '2.0'
console.log(params.version) // '2.0'

However, in the case of replacing the entire route query with the new persistent icon data, we can use the Vue router instead like this:

await router.replace({
  query: persistentIcon
})

@sebinside sebinside added enhancement New feature or request support Does enhance the experience without changing the icon generator PR-planned Pull request with changes that are planned to be merged soon(ish) labels Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request PR-planned Pull request with changes that are planned to be merged soon(ish) support Does enhance the experience without changing the icon generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants