Skip to content
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

Fix misbehaving in rendering when addon is not active #272

Merged
merged 3 commits into from Apr 4, 2024

Conversation

yannbf
Copy link
Contributor

@yannbf yannbf commented Mar 25, 2024

The addon was rendering even when it was not supposed to, as can be seen here:

image

The Storybook addon API contains a flag to indicate whether the addon is actively selected, so we use it in order to not render it when not needed

CAVEAT

There is a side effect where the addon is not rendering instantly as before when switching tabs. It displays a spinner. We should check how to find a middle ground for this

📦 Published PR as canary version: 1.2.27--canary.272.30610d6.0

✨ Test out this PR locally via:

npm install @chromatic-com/storybook@1.2.27--canary.272.30610d6.0
# or 
yarn add @chromatic-com/storybook@1.2.27--canary.272.30610d6.0

@yannbf yannbf added release Auto: Create a `latest` release when merged patch Auto: Increment the patch version when merged labels Mar 25, 2024
@ghengeveld ghengeveld added skip-release Auto: Preserve the current version when merged and removed release Auto: Create a `latest` release when merged labels Apr 4, 2024
@ghengeveld ghengeveld merged commit cb02d7a into main Apr 4, 2024
10 checks passed
@ghengeveld ghengeveld deleted the yann/fix-misbehaving-in-rendering branch April 4, 2024 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Auto: Increment the patch version when merged skip-release Auto: Preserve the current version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants