You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to differentiate these URLs:
/foo
/foo?q
/foo?q=bar
If I'm using
const route = useRoute()
that's possible;route.query.q === undefined
route.query.q === null
route.query.q === 'bar'
But with
const q = useRouteQuery('q')
there seems no differentiation betweenundefined
andnull
.q === null
q === null
q === 'bar'
Is that intentional? Did I miss an obvious solution?
Beta Was this translation helpful? Give feedback.
All reactions