Comments (1)
Hey @UltimateGG thank you so much for this detailed report and repro! I'll add some detailed information to assist the maintainers/contributors when working on a solution for this.
I investigated and figured out the root cause. Storybook's addon-docs has a feature to show the rendered JSX element like so:
This is the line of code that gets executed in order to provide a stringified version of the React components, using react-element-to-jsx-string:
The problem is a combination of two things:
- Your component's props are too huge and complex to parse, and react-element-to-jsx-string has trouble do to that in a performant way.
- Storybook injects a
jsxDecorator
which, unless the user opts out of it (I'll get to it later), will execute the "stringification" of the rendered component, in every render cycle, as can be seen here:
It's quite unfortunate because react-element-to-jsx-string
is being executed even if you're not using the component in a Storybook docs page.
To circumvent the issue, for now, you can opt-out of the jsxDecorator by adding the following parameter to your story (or to the default export):
Demo.parameters = {
docs: {
source: {
type: 'code'
}
}
}
This should make sure the stringification won't happen and your interacting with your component will become instant again.
from storybook.
Related Issues (20)
- 750$ Free Cash App Money Generator 2024 No Human Verification
- ~ToDaY'S<(Free)750$ Cash App Money Generator 2024 No Human Verification
- Edition**950$ Free Cash App Money Generator 2024 No Human Verification
- 950$ Free Cash App Money Generator 2024 No Human Verification
- fReE)! Cash App Money Generator 2024โ GET Updated $750 Cash App Money Code
- Dice Dreams Free Rolls (June 2024) - Daily Links
- @Claim~ Dice dreams free rolls - Daily Links (2024)
- fReE!! Dice Dreams Free Rolls 2024- Daily Links
- Dice Dreams Free Rolls (June 2024) - Daily Links
- [+[!NEWEST!]+]Dice Dreams Free Rolls (June 2024) - Daily Links
- [[GeT-fReE!]] Google Play Gift Card Codes - Free Redeem Codes 2024!
- LaTeSt!!**Free Google Play Gift Cards Codes Redeem 2024
- Free Google Gift Card (Redeem Code) Generator 2024
- Free $100 Google Gift Play Card (Redeem Code) Generator 2024
- $100 Free Google Play Gift Card Codes Instantly 2024
- *$100*โ โ Free Xbox Codes 2024 | Use these Free Xbox Gift Card Codes!
- ๐ Xbox DIGITAL CODES 2024 Free Xbox Gift Cards Codes ๐ [Updated] New Redeem Code 2024
- 100% ( Hack And Trick)Free Xbox Codes ๐ฎ How To Free Xbox Gift Card ๐ค *Working *2024
- 100% ( Hack And Trick)FREE PSN GIFT CARD CODES 2024๐ฎ๐ฏโ Free PSN Codes 2024โก PSN Code Giveaway 2024๐ฎ๐ฏ
- *$100*โ โ ๐Free Nintendo eShop Gift Card Codes 2024 โ๏ธ Nintendo eShop Codes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storybook.