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

Prevent flashing wrong screen by increasing timeout #195

Merged

Conversation

ghengeveld
Copy link
Member

@ghengeveld ghengeveld commented Mar 5, 2024

We already had a timeout in place to prevent flashing the wrong screen, but it wasn't long enough. Extending it to 10 seconds ensures we only reset the uncommittedHash while the new build is underway, thereby preventing the wrong screen from appearing. Arguably this is not the most reliable solution but a proper fix would be way more involved and this is likely good enough.

📦 Published PR as canary version: 1.2.4--canary.195.ca78be3.0

✨ Test out this PR locally via:

npm install @chromatic-com/storybook@1.2.4--canary.195.ca78be3.0
# or 
yarn add @chromatic-com/storybook@1.2.4--canary.195.ca78be3.0

@ghengeveld ghengeveld requested a review from thafryer March 5, 2024 11:50
@ghengeveld ghengeveld changed the title Increate time before resetting uncommittedHash, to prevent flashing wrong screen Prevent flashing wrong screen by increasing timeout Mar 5, 2024
@ghengeveld ghengeveld merged commit 854d685 into main Mar 5, 2024
6 checks passed
@ghengeveld ghengeveld deleted the ghengeveld/ap-4193-flash-of-the-wrong-view-during-onboarding branch March 5, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants