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

feat(nuxt): throw error if setInterval is used on server #25259

Merged
merged 9 commits into from
Jan 19, 2024
Merged

Conversation

atinux
Copy link
Member

@atinux atinux commented Jan 17, 2024

🔗 Linked issue

Resolves #25256

❓ Type of change

  • 👌 Enhancement (improving an existing functionality like performance)

📚 Description

Throw an error if using setInterval in the Vue app during SSR to avoid memory leaks or getting the node process stuck during nuxt generate.

📝 Checklist

  • I have linked an issue or discussion.
  • I have added tests (if possible).

Sorry, something went wrong.

Copy link

stackblitz bot commented Jan 17, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions github-actions bot added the 3.x label Jan 17, 2024
@atinux atinux changed the title chore(dx): mock setInterval for Vue app during SSR chore(ssr): mock setInterval for Vue app during SSR Jan 17, 2024
@atinux atinux changed the title chore(ssr): mock setInterval for Vue app during SSR chore(nuxt): mock setInterval for Vue app during SSR Jan 17, 2024
@danielroe danielroe added this to the 3.10 milestone Jan 17, 2024
@danielroe
Copy link
Member

I love it! ❤️

@danielroe danielroe changed the title chore(nuxt): mock setInterval for Vue app during SSR feat(nuxt): mock setInterval for Vue app during SSR Jan 17, 2024
@gaetansenn
Copy link

I love it! ❤️

Was my fault 😂

@danielroe danielroe changed the title feat(nuxt): mock setInterval for Vue app during SSR feat(nuxt): throw error if setInterval is used on server Jan 18, 2024

Verified

This commit was signed with the committer’s verified signature.
danielroe Daniel Roe

Verified

This commit was signed with the committer’s verified signature.
danielroe Daniel Roe

Verified

This commit was signed with the committer’s verified signature.
danielroe Daniel Roe

Verified

This commit was signed with the committer’s verified signature.
danielroe Daniel Roe

Verified

This commit was signed with the committer’s verified signature.
danielroe Daniel Roe

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@danielroe danielroe merged commit 90d8518 into main Jan 19, 2024
@danielroe danielroe deleted the dx/interval branch January 19, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DX: warn or throw error when using setInterval during SSR
5 participants