pbeshai / use-query-params

React Hook for managing state in URL query parameters with easy serialization.

Home Page:https://pbeshai.github.io/use-query-params

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

NareshMurthy opened this issue · comments

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