-
Notifications
You must be signed in to change notification settings - Fork 33
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
Bug: preview hooks inside a decorator thrown an error #50
Comments
I'm experiencing the same. |
Thank you for noticing this, @markelarizaga! I was pretty sure I did write a descriptive title, but wasn't the case! It is now fixed :) |
Can confirm the same issue. It also happens when you the performance addon in conjunction with the popular pseudo-states addon. As of right now, they are mutually exclusive because of this bug. :"( |
Same issue when used in conjunction with storybook-miragejs. Sadly, the only way to use this addon is to make sure other decorators that come before it in the chain do not use storybook hooks e.g useChannel, useParams, etc. Using React hooks are fine. Was able to work-around by recreating the storybook-miragejs addon functionality I needed from scratch using purely react hooks. Nonetheless, this issue is very limiting for most realistic storybook implementations. |
This issue is still relevant, I've got the same error when using |
When I'm trying to meassure the performance of a story with decorators with preview hooks, the renders throws an error:
If I remove the decorator's preview hooks, everything works correctly.
Than you for your work!
The text was updated successfully, but these errors were encountered: