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

[BUG] Excessive memory usage for SPA where unload hooks keep accumulating #2311 #2312

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

MSNev
Copy link
Collaborator

@MSNev MSNev commented Mar 20, 2024

  • Rework Asynchronous notification handling

@MSNev MSNev added bug p1 SPA support Required to support SPA style apps labels Mar 20, 2024
@MSNev MSNev added this to the 3.1.2 milestone Mar 20, 2024

export class GlobalTestHooks {

public registerTests() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is using a "hack" of our current test infrastructure to "set" some global configuration that will affect "ALL" tests that follow the initialization. (which is why this was added as the "first" item of every tests bundle.

Of note, is that IF any test also changes / sets / calls the test hook it will "replace" and invalidate this setting (as this is currently a single value, not a list of callbacks)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They also needed to be created / added here as the "common" test infrastructure does not have access to the main "Application Insights" code to be able to add code specific "hooks"

…ting #2311

- Rework Asynchronous notification handling
@MSNev MSNev merged commit 276c123 into main Mar 20, 2024
7 checks passed
MSNev added a commit that referenced this pull request Mar 21, 2024
… where unload hooks keep accumulating #2311 (#2312)

- Rework Asynchronous notification handling
MSNev added a commit that referenced this pull request Mar 21, 2024
… where unload hooks keep accumulating #2311 (#2312)

- Rework Asynchronous notification handling
MSNev added a commit that referenced this pull request Mar 21, 2024
… where unload hooks keep accumulating #2311 (#2312) (#2313)

* [release-3.0] [main->cherrypick] [BUG] Excessive memory usage for SPA where unload hooks keep accumulating #2311 (#2312)

- Rework Asynchronous notification handling

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

Successfully merging this pull request may close these issues.

None yet

3 participants