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

Logs meant for development showing up in production #288

Open marius-tb opened 4 months ago

marius-tb commented 4 months ago

It seems there is logging enabled here, when parameter config is missing: https://github.com/pbeshai/use-query-params/blob/master/packages/serialize-query-params/src/decodeQueryParams.ts#L30

Clearly it's meant to only show in development, however you can see below the published version of this code shows that is always logging, so that means the project is being built while in NODE_ENV=development. It would be great to be able to disable this behavior.

image