-
-
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
Improve rendering of 'types' in addon-actions #1887
Conversation
Codecov Report
@@ Coverage Diff @@
## release/3.3 #1887 +/- ##
===============================================
+ Coverage 22.22% 22.25% +0.03%
===============================================
Files 326 325 -1
Lines 6538 6520 -18
Branches 804 813 +9
===============================================
- Hits 1453 1451 -2
+ Misses 4497 4466 -31
- Partials 588 603 +15
Continue to review full report at Codecov.
|
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, TESTED ✅
@@ -113,5 +123,7 @@ export function retrocycle($) { | |||
} | |||
})($); | |||
|
|||
muteProperty(CYCLIC_KEY, $); |
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.
@rhalff this breaks when $
is a primitive value (e.g., a string). The failure is silent because of this catch block: https://github.com/storybooks/storybook/blob/master/lib/channel-postmessage/src/index.js#L68
This fixes the root level not rendering correctly
e.g. It now renders
[SyntheticEvent, Event]
instead of[Object, Object]
The
constructor.name
replacement which was done by theNodeRenderer
is now done immediately using thereviver
function during JSON.parse.