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

setImmediate works only on first page load, but not after subsequent reloads. #25314

Closed
3 tasks done
valyrie97 opened this issue Sep 3, 2020 · 2 comments · Fixed by #25869
Closed
3 tasks done

setImmediate works only on first page load, but not after subsequent reloads. #25314

valyrie97 opened this issue Sep 3, 2020 · 2 comments · Fixed by #25869

Comments

@valyrie97
Copy link

valyrie97 commented Sep 3, 2020

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Electron Version:
    • 10.1.0
  • Operating System:
    • windows 10
  • Last Known Working Electron version:
    • unknown

Expected Behavior

setImmediate works the same regardless of whether you have loaded a page for the first time, or after a reload.

Actual Behavior

setImmediate does execute on first page load, and does not after reloads.

To Reproduce

I've created an electron fiddle gist which shows the problem. The essence is that on first page load, setImmediate properly executes the given function, however, after reloading the page, with the same code, the invocation gets lost internally and never happens.

@nornagon
Copy link
Member

I can reproduce this on Windows, but not on macOS. 🤔

@nornagon
Copy link
Member

As a temporary workaround, app.allowRendererProcessReuse = false fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants