fridays / next-routes

Universal dynamic routes for Next.js
MIT License
2.47k stars 230 forks source link

Support nested params #124

Closed Sli-7x closed 1 year ago

Sli-7x commented 6 years ago

if i have nested params e.g. const params = { page: 1, refinementList: { colors: ['white'] } } and passing to router Router.pushRoute('product', params, { shallow: true }) then it returns to url page=1&refinementList=%5Bobject%20Object%5D

But if i stringify params with "qs" library qs.stringify(params) it returns page=1&refinementList%5Bcolors%5D%5B0%5D=White