Skip to content
This repository was archived by the owner on Oct 2, 2021. It is now read-only.

Clearing the context immediately to avoid sending multiple remove eve…#318

Merged
roblourens merged 1 commit intomicrosoft:masterfrom
rakatyal:raghav_clear_context
Apr 2, 2018
Merged

Clearing the context immediately to avoid sending multiple remove eve…#318
roblourens merged 1 commit intomicrosoft:masterfrom
rakatyal:raghav_clear_context

Conversation

@rakatyal
Copy link
Contributor

…nts in case of quick refreshes

When we have a case of multiple refreshes in the browser in a quick succession, sometimes we have a case where we don't reach the point of clearing the context and, in turn _scriptById, while sending out 'remove' events from the previous refresh.
In this scenario, the subsequent refresh gets the _scriptsById of the previous state and we end up sending multiple remove events for the same script causing PineZorro to throw an error.

We should clear the context as soon as we populate the cachedScriptParsedEvents array.

@roblourens roblourens self-requested a review March 29, 2018 01:29
@roblourens
Copy link
Member

@rakatyal I won't merge it this week because we are about to ship vscode. Do you need it published right away? If so, I can merge it to another branch and publish. Just let me know...

@rakatyal
Copy link
Contributor Author

@roblourens: Okay. So when can we merge this earliest and get it published via master?

@roblourens
Copy link
Member

End of this week?

@rakatyal
Copy link
Contributor Author

Okay I think that will be all right. If we can merge and publish this by EOD tomorrow we will have a week to see we didn't regress anything. Can we do that?

@rakatyal
Copy link
Contributor Author

rakatyal commented Apr 2, 2018

@roblourens: Can we merge and publish this today?

@roblourens roblourens merged commit 8bf1f29 into microsoft:master Apr 2, 2018
@roblourens roblourens added this to the March 2018 milestone Apr 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants