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

Core: Ensure that we do not render a story twice if re-rendered during preparing #17599

Merged
merged 3 commits into from
Mar 9, 2022

Conversation

tmeasday
Copy link
Member

@tmeasday tmeasday commented Mar 1, 2022

Issue: #17214

Telescoping on #17598

What I did

Abort a render if setCurrentStory is called during its preparing phase.

How to test

  • Is this testable with Jest or Chromatic screenshots?

See test, and original repro on issue.

@nx-cloud
Copy link

nx-cloud bot commented Mar 1, 2022

☁️ Nx Cloud Report

CI ran the following commands for commit 539c868. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Tho build is failing due to a TS error

lib/preview-web/src/PreviewWeb.tsx Outdated Show resolved Hide resolved
@shilman
Copy link
Member

shilman commented Mar 5, 2022

@tmeasday merge conflicts & CI errors. can you please take a look?

@tmeasday
Copy link
Member Author

tmeasday commented Mar 5, 2022

@shilman I am still finishing this off after (in person) feedback from @ghengeveld

@tmeasday tmeasday force-pushed the 17214-fix-duplicate-initial-render branch from 8214d06 to b4f02bc Compare March 7, 2022 02:24
@tmeasday tmeasday force-pushed the 17214-fix-duplicate-initial-render branch from b4f02bc to 0ded7eb Compare March 7, 2022 03:55
@shilman
Copy link
Member

shilman commented Mar 8, 2022

@tmeasday can you look into the failing unit tests?

@tmeasday tmeasday force-pushed the 17214-fix-duplicate-initial-render branch from 0ded7eb to 539c868 Compare March 9, 2022 05:47
Base automatically changed from refactor-story-render to next March 9, 2022 07:27
@shilman shilman changed the title Ensure that we do not render a story twice if re-rendered during preparing Core: Ensure that we do not render a story twice if re-rendered during preparing Mar 9, 2022
@shilman shilman merged commit c4c2ef9 into next Mar 9, 2022
@shilman shilman deleted the 17214-fix-duplicate-initial-render branch March 9, 2022 07:29
tmeasday added a commit that referenced this pull request Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants