You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The rules/context-in-play-function rule does not support the new context argument syntax introduced in Storybook v8.2.0, which allows self-referencing context within play functions. When trying to pass a context when invoking the play function of another story, an error is thrown.
To Reproduce
Steps to reproduce the behavior:
Upgrade to Storybook v8.2.0.
Implement the new context passing syntax in a story's play function as shown below:
Observe the error: Pass a context when invoking play function of another story.
Expected behavior
Expected no errors when passing the context as an argument in the play function of another story. The implementation should recognize and validate the new syntax as per the changes introduced in Storybook v8.2.0.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Reference to the pull request that introduced the change in Storybook v8.2.0: PR #28353
Describe the bug
The
rules/context-in-play-function
rule does not support the new context argument syntax introduced in Storybook v8.2.0, which allows self-referencing context withinplay
functions. When trying to pass a context when invoking the play function of another story, an error is thrown.To Reproduce
Steps to reproduce the behavior:
play
function as shown below:Pass a context when invoking play function of another story
.Expected behavior
Expected no errors when passing the context as an argument in the play function of another story. The implementation should recognize and validate the new syntax as per the changes introduced in Storybook v8.2.0.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Reference to the pull request that introduced the change in Storybook v8.2.0: PR #28353
The previous syntax was:
It has been updated to:
This update seems not to be fully supported by
eslint-plugin-storybook
, specifically the rulerules/context-in-play-function
.The text was updated successfully, but these errors were encountered: