Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

deprecated proptype validation cannot be disabled by environment state #354

@MichaelRando

Description

@MichaelRando

Latest node_modules/prop-types/checkPropTypes.js doesn't like the prop type validations. I cannot turn them off because DEV is hardcoded true via:
const DEV = typeof process==='undefined' || !process.env || process.env.NODE_ENV!=='production';

I don't use a mock process lib in the browser, so there's not a easy string substitution that will toggle off that DEV=true.

The warning text is
Warning: You are manually calling a React.PropTypes validation function for the 'store' prop on 'Provider'. This is deprecated and will not work in production with the next major version. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions