-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added react-is to validate the proptype for Route's component. #6417
Added react-is to validate the proptype for Route's component. #6417
Conversation
Removed a couple of outdated TODOs that dealt with __DEV__ The rest of the changes were done just from an npm install command React-is does add a tiny bit of size ( https://bundlephobia.com/result?p=react-is@16.5.2 ) as noted by the snapshots, but it seems like the best (and official) way to support the check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why you removed the TODOs in react-router-native
, but the other changes look good.
@@ -20,8 +20,6 @@ NativeRouter.defaultProps = { | |||
} | |||
}; | |||
|
|||
const __DEV__ = true; // TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't actually have a build for react-router-native
yet, so we still need this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, my bad. I thought I saw something but I guess I'm wrong 😊 Will fix.
packages/react-router-native/Link.js
Outdated
@@ -41,8 +41,6 @@ class Link extends React.Component { | |||
} | |||
} | |||
|
|||
const __DEV__ = true; // TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't actually have a build for react-router-native
yet, so we still need this.
Updated. Sorry about that! 😊 |
Excellent. Thanks, @frehner! :) |
Any Idea when this will be available over npm? waiting for this in hope of fix for this issue#172 |
Planning on shipping 4.4.0-beta.5 tomorrow with this in it. |
Added react-is to validate the proptype for Route's component.
Removed a couple of outdated TODOs that dealt with
__DEV__
The rest of the changes were done just from an
npm install
commandReact-is does add a tiny bit of size ( https://bundlephobia.com/result?p=react-is@16.5.2 ) as noted by the snapshots, but it seems like the best (and official) way to support the check.
Adds the changes and feedback found in #6327 while also removing a duplicated test