Closed AlicanC closed 8 years ago
This lib is supposed to mirror the behavior of the version included in React. If you want an optional message, you can always do const invariant = require('assert');
. Node's assert
module doesn't require a message.
We have many cases where specifying a message is redundant. It would be great if the message was optional and defaulted to something simple like "Invariant Violation".