UNPKG

@tacky/store

Version:

State management framework based on react

8 lines 327 B
export var OBFUSCATED_ERROR = 'An invariant failed, however the error is obfuscated because this is an production build.'; export function invariant(check, message) { if (!check) throw new Error('[@tacky/store]: ' + (message || OBFUSCATED_ERROR)); } export function fail(message) { invariant(false, message); throw 'X'; }