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

fix: handle reading location from data router #258

Closed pbeshai closed 1 year ago

pbeshai commented 1 year ago

Seems some time around react router 6.6, navigator stopped having location on it so our adapter didn't fully work without enableBatching (at least for data routers). This seems to fix it for React Router 6.8.1 at least. Will release in v2.2.0 (minor update). Related to #233