Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Add error codes to production invariants like React did in 15.2 #1140

Description

@philippe-git

Do you want to request a feature or report a bug?

Request a feature

What is the current behavior?

We're currently seeing rare invariant errors in production with the good old "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings".

We're using React 15.4.2, so I was expecting nice error codes instead from reactProdInvariant.

Looking more closely, I realized DraftJS was also using invariant, but not reactProdInvariant; it feels pretty safe to assume that those production exceptions come from DraftJs.

What is the expected behavior?

Could DraftJS implement the same improvement to production invariants that React did in 15.2 with reactProdInvariant? See react/react#6948

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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