Skip to content

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