Cry0nicS
Cry0nicS
Explore posts from servers
NNuxt
Created by Cry0nicS on 3/28/2024 in #❓・help
Pass URL query params to href
Pretty cool, didn't know. Thanks
7 replies
NNuxt
Created by Cry0nicS on 3/28/2024 in #❓・help
Pass URL query params to href
Actually, seems like I don't need to install it.
// Stringfy and encode the query object into a query string.
const queryString = stringifyQuery(query);

// Return the full URL, appending the query string if it exists
return queryString ? `${baseUrl}?${queryString}` : baseUrl;
// Stringfy and encode the query object into a query string.
const queryString = stringifyQuery(query);

// Return the full URL, appending the query string if it exists
return queryString ? `${baseUrl}?${queryString}` : baseUrl;
This seemed to have worked.
7 replies
NNuxt
Created by Cry0nicS on 3/28/2024 in #❓・help
Pass URL query params to href
Thanks. If I can, however, I'd like to avoid using another library just for this use case
7 replies
NNuxt
Created by Cry0nicS on 7/11/2023 in #❓・help
Cannot init new project
Solved it by manually creating an empty folder named npm in C:\Users\{name}\AppData\Roaming
2 replies