This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with react-transition-group's PropTypes (#21)
* Fix issue with Node production envirnoment `react-transition-group`'s custom PropTypes are null if the NODE_ENV is "production." This causes an Internal Server Error in Next.js, "Cannot read property 'isRequired' of null." To fix this, I simply mirrored the react-transition-group's code by nullifying the prop type `timeoutsShape` only if `process.env.NODE_ENV` is "production". * Avoiding production console error I realized my previous commit fixed the problem but would have resulted in a console.error in production for any time that a `loadingTimeout` prop was supplied.
- Loading branch information