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

Take a screenshot on preview #7156

Merged
merged 3 commits into from
Nov 14, 2024
Merged

Take a screenshot on preview #7156

merged 3 commits into from
Nov 14, 2024

Conversation

ClementPasteau
Copy link
Collaborator

No description provided.

@ClementPasteau ClementPasteau requested a review from 4ian as a code owner November 13, 2024 10:39
@ClementPasteau ClementPasteau force-pushed the automatic-screenshot-preview branch from ac3a67e to 17416f8 Compare November 13, 2024 17:17
},
[launchPreview]
);

const launchPreviewWithScreenshot = React.useCallback(
Copy link
Owner

Choose a reason for hiding this comment

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

Consider not adding yet-another-way-to-launch-preview and instead:

  • Make the logic related to the timing inside the existing function.
  • delayTimeInSeconds can also be in the function
  • forcing a screenshot, bypassing the check for timing, is "just" a "forceScreenshot: true". But this is only used for quick customization. For normal previews, the buttons are unchanged.

@4ian 4ian merged commit 272766c into master Nov 14, 2024
5 of 6 checks passed
@4ian 4ian deleted the automatic-screenshot-preview branch November 14, 2024 11:07
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.

2 participants