Skip to content

Option to suppress warnings for unconfigured parameters #298

@julioxavierr

Description

@julioxavierr

Hey! 👋

I'm using decodeQueryParams and getting warnings like "Passing through parameter [parameter] during decoding since it was not configured" for query params that I don't actually need to decode.

My URLs sometimes have extra parameters (analytics stuff, legacy params, etc.) that I want to ignore, but the warnings are cluttering up my console and exposing internal behavior that I'd like to hide from final users.

Would it be possible to add a simple option to suppress these warnings? Something like:

decodeQueryParams(config, query, { suppressWarnings: true })

Right now I have to add every possible parameter to my config just to avoid the warnings, which feels messy.

--

Thanks for the awesome library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions