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
#src/Util/StorybookContextHelper.php
public static function addStorybookContext(array &$variables, StorybookContext $context): void
{
if (true === self::hasStorybookContext($variables)) {
throw new \InvalidArgumentException('Storybook context already exists.');
}
$variables[self::CONTEXT_KEY] = $context;
}
remove exception throwing
#src/Util/StorybookContextHelper.php
public static function addStorybookContext(array &$variables, StorybookContext $context): void
{
if (true === self::hasStorybookContext($variables)) {
return;
}
$variables[self::CONTEXT_KEY] = $context;
}
do not know side effect of this, but it works for now solves a problem, and logically there is no need for context to be replaced for child elements, only parent element is important.
I get "Storybook context already exists" when I use nested components like
Symfony version is 6.4
With latest Storybook bundle
The text was updated successfully, but these errors were encountered: