-
I want to do something like this: const tags = useRouteQuery('tags', [], { transform: param => Array.isArray(param) ? param : [param] }) as seen in this #2191 but I'm having trouble getting new values added to the array. I would have assumed doing |
Beta Was this translation helpful? Give feedback.
Answered by
OwenVey
Feb 2, 2024
Replies: 1 comment
-
Ah, figured this out just after posting. Should simply be doing |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
OwenVey
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah, figured this out just after posting. Should simply be doing
tags.value = [...tags.value, 'newTag']
instead of.push('newTag')