v2.0.0
Breaking Change!!
Due to my lack of understanding of query parameters, I used to generate the query parameters with the characters ?q=
prepended, but I realized this was wrong and changed it to start with ?
.
Example:
Previous:
const routeConfig = {
productsSearch: {
path: 'products/search/?q=size'
}
}
// ... create link generator
link('productsSearch', null, { size: 'large' }) // result: '/products/search?q=size'
Now:
const routeConfig = {
productsSearch: {
path: 'products/search/?size'
}
}
link('productsSearch', null, { size: 'large'}) // result: '/products/search?size=large