pbeshai / use-query-params

React Hook for managing state in URL query parameters with easy serialization.
https://pbeshai.github.io/use-query-params
ISC License
2.13k stars 95 forks source link

[Question] is there way to use ArrayParam along with ObjectParam? #278

Open NareshMurthy opened 9 months ago

NareshMurthy commented 9 months ago

Hello, Is there way to use ArrayParam along with ObjectParam? I have an Object like this below

[
  {
    zip: '',
    city: '',
    state_id: 'NY',
    state_name: 'New York',
  },
 {
    zip: '',
    city: '',
    state_id: 'CA',
    state_name: 'California',
  }
];

Using JSONParam kinda makes the query param really lengthy and unreadable. Thanks