Introducing @epic-web/invariant #560
kentcdodds
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The two invariant utilities have been extracted into a new package called
@epic-web/invariant
! Also with the improvement that it throws a custom InvariantError now so you can distinguish them from other types of errors (could be useful in some cases I suppose).Find the commit here: 5164851
Star the package here: https://github.com/epicweb-dev/invariant
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions