Skip to content

[perf] make initialize & get singleton lines more explicit for vNext #229

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 3 commits into from
Aug 23, 2021

Conversation

rachelsaunders
Copy link
Contributor

No description provided.

@rachelsaunders rachelsaunders changed the title make initialize & singleton lines more explicit make initialize & get singleton lines more explicit Aug 23, 2021
@rachelsaunders rachelsaunders changed the title make initialize & get singleton lines more explicit [perf] make initialize & get singleton lines more explicit Aug 23, 2021
@rachelsaunders rachelsaunders changed the title [perf] make initialize & get singleton lines more explicit [perf] make initialize & get singleton lines more explicit for vNext Aug 23, 2021
@rachelsaunders rachelsaunders marked this pull request as ready for review August 23, 2021 20:09
@samtstern
Copy link
Contributor

@rachelsaunders from your snippets-web repo run npm install && npm run snippets and then commit the result and push again.

If you want me to do it I can.

// [END perf_initialize_app]

// [START perf_singleton]
// Initialize Performance Monitoring and get a reference to the service
const perf = getPerformance();
const perf = getPerformance(app);
Copy link
Contributor

Choose a reason for hiding this comment

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

This was an intentional change, but it's fine either way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@davideast said that he preferred being more explicit with the demo snippet to ensure folks know how it's actually working, but then folks can do whatever they want in their actual code.

Copy link
Contributor

Choose a reason for hiding this comment

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

🤷 well a few months ago we removed this from all other snippets where possible:
#135

@samtstern samtstern merged commit 81fcf30 into master Aug 23, 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