Skip to content

SSR Guide: Add an example on why singletones are bad #1298

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

Merged
merged 2 commits into from
Oct 27, 2021

Conversation

CyberAP
Copy link
Contributor

@CyberAP CyberAP commented Oct 26, 2021

Description of Problem

I think the problem of using singletones is best illustrated using actual code (so people don't accidentally repeat the same mistake in their code as well).

Proposed Solution

Add a brief example of using a singletone in an SSR app and what it leads to.

@NataliaTepluhina NataliaTepluhina merged commit 965d330 into vuejs:master Oct 27, 2021
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