Parsing and stringifying query strings #9659
Unanswered
MartinMalinda
asked this question in
Questions (Nuxt 2)
Replies: 1 comment
-
Hey Martin 👋 The idea of re-using code, especially
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have quite a few cases in my code where I have to parse and stringify query strings. There's libraries that do this well, but I'm wondering if I can import such functions from Nuxt itself because Nuxt is certainly doing this as part of its routing.
I know it's possible to import these functions from
vue-router
, but when I use Nuxtvue-router
is encapsulating within it and I can't import from thevue-router
package. Unless perhaps I would addvue-router
as a dependency. But I'm a little bit worried about this. My intention is to save some extra code - don't include extra code that is already present in Nuxt. And this over time cause I would load vue-router twice.Any tips? Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions