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(scully-plugin-puppeteer): rename onRenderReady event to prevent zone.js patching #1597

Merged
merged 1 commit into from
Jul 15, 2022

Conversation

lamp-of-god
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Other... Please describe:

What is the current behavior?

Since version 0.11.5 Zone.Js patches all window properties started from on prefix. Puppeteer plugin uses onRenderReady event to notify puppetteer. So Zone patching makes impossible for puppeteer to receive such event, which causing to always wait for default 25sec timeout on Scully build for Angular projects.

Issue Number: N/A

What is the new behavior?

Puppeteer doesn't always wait for timeout and processes correctly.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

One can suppress Zone patching of the onRenderReady event in the projects manually, but it would be great to have solution working out-of-the-box. And the simplest way to fix it is to rename the event. So this PR does it.

@CLAassistant
Copy link

CLAassistant commented Jun 27, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@SanderElias SanderElias left a comment

Choose a reason for hiding this comment

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

LGTM

@SanderElias SanderElias merged commit e2fb21f into scullyio:main Jul 15, 2022
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.

3 participants