-
-
Notifications
You must be signed in to change notification settings - Fork 9.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
Fix/react version backwards compatibility #5148
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5148 +/- ##
==========================================
+ Coverage 34.86% 34.87% +<.01%
==========================================
Files 569 569
Lines 7036 7037 +1
Branches 940 938 -2
==========================================
+ Hits 2453 2454 +1
Misses 4084 4084
Partials 499 499
Continue to review full report at Codecov.
|
…der version of react
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 don’t get it. Didn’t we already make this change in a different pr? (To iframe.webpack.js).
@tmeasday indeed, I'm confused as well, where did this change go we worked on.. |
import PropVal from './PropVal'; | ||
import PrettyPropType from './types/PrettyPropType'; | ||
|
||
const Table = props => <table style={{}} {...props} />; |
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.
what's the point of adding an empty style
object?
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.
right nothing, doesn't output anything either though
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.
Why not just use table
then?
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 don't feel strongly about this, but I like the look of jsx when it's just components, vs components & html mixed.
I don't think there are any pros or cons to speak of really.
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.
One con is that it makes code less understandable at a first glance. It makes you think that Table
does something additional when caomparing to table
so you won't skip it e.g. when debugging
If you really want camelcase, you can do this:
const Table = 'table'
@ndelangen @tmeasday I'm confused about the status of these changes.
Do we have a failing example in the repo that I can test to verify the fix? Also, what's up with "part 1"? Are there more parts coming? |
You possibly forgot to regenerate the dll? |
just ignore, I was expecting to need to experiment a lot, since I thought @tmeasday and me already fixed this. |
@ndelangen I did |
I tried to test this out in the Wix example by creating build-packs and modifying their package.json as follows:
I'm still getting the |
…eact version for lib/core
because otherwise the wrong version is installed in the root
A couple of notes on this:
My advice would be to remove the first commit from this PR and rebase it onto #5047 but I don't have any bandwidth to look at it right now so if we just want to continue on that's fine. |
@ndelangen I've released this as
UPDATE: FWIW same error when I apply that commit to #5047 |
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.
Approving this because I've verified that it works--not because I understand the solution or the alternatives. I've also fixed addon-links
in an ugly way and have verified the fix.
@Hypnosphi The typescript CRA example Teamcity config has been merged and is now being applied to the master branch, which doesn't contain the TS CRA example. I'm ignoring the build error and merging, but if you have any suggestions on a better solution for this (cherry-pick the PR into |
@shilman You just need to pass |
Issue: #4191
What I did
How to test
I changed the versions of
package.json
the cra example, and verified it would work, then changed it back.See: https://5c2f898b5f9f740009255238--storybooks-cra.netlify.com/?selectedKind=Button&selectedStory=with%20new%20info&full=0&addons=1&stories=1&panelRight=1&addonPanel=storybook%2Factions%2Factions-panel
most changes are related to addon-info