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

Logs meant for development showing up in production

marius-tb opened this issue · comments

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