-
-
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 addon-knobs ObjectType knob react warning #5276 #6159
Conversation
@leoyli getting some linting errors:
|
Codecov Report
@@ Coverage Diff @@
## next #6159 +/- ##
==========================================
- Coverage 38.04% 38.03% -0.01%
==========================================
Files 643 643
Lines 9420 9422 +2
Branches 1373 1344 -29
==========================================
Hits 3584 3584
- Misses 5268 5270 +2
Partials 568 568
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## next #6159 +/- ##
==========================================
- Coverage 38.04% 38.03% -0.01%
==========================================
Files 643 643
Lines 9420 9422 +2
Branches 1373 1373
==========================================
Hits 3584 3584
- Misses 5268 5270 +2
Partials 568 568
Continue to review full report at Codecov.
|
@shilman, thanks for the heads up! For some reason I've made a typo here... I've made a correction. :) |
@shilman, I still see 1 checks is neutral/pending... Is this a blocker?! If so what should I do?! |
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.
Hi @leoyli This fixes the warning but looks like it causes a bug. When I run official-storybook
on this branch I don't see the Styles options as I expect in the knobs UI. Here's what it should look like on next
:
Mind digging in and see if you can figure out what's wrong?
@shilman, Oh yes, I'm happy to make contributions to make this thing great. I will find a time during weekend to work on this. Thank you for your review and catching my bug! |
@shilman, I can see the problem you've mentioned. I have just committed a change to fix this, which is simpler and safer I believe. :) I have test in my local machine and ensure the knob running as expected and no printing |
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.
LGTM and working great. Thanks for fixing this @leoyli !
Thank you for your review, I will try to find what else I can contribute! |
Fix addon-knobs ObjectType knob react warning #5276
Issue: #5276
What I did
getDerivedStateFromProps
console warning due to no initial state provided to React.How to test
Is this testable with Jest or Chromatic screenshots?
No
Does this need a new example in the kitchen sink apps?
No
Does this need an update to the documentation?
No
If your answer is yes to any of these, please make sure to include it in your PR.