-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
When Hot Reload change fails to apply in the browser send full error … #33471
Conversation
Thanks for your PR, @tmat. |
@tlmii PTAL |
@@ -43,7 +43,8 @@ setTimeout(async function () { | |||
const payload = JSON.parse(message.data); | |||
const action = { | |||
'UpdateStaticFile': () => updateStaticFile(payload.path), | |||
'BlazorHotReloadDeltav1': () => applyBlazorDeltas(payload.sharedSecret, payload.deltas), | |||
'BlazorHotReloadDeltav1': () => applyBlazorDeltas(payload.sharedSecret, payload.deltas, false), | |||
'BlazorHotReloadDeltav2': () => applyBlazorDeltas(payload.sharedSecret, payload.deltas, true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I preserved backward compat here, but I'm not sure what the versioning requirements actually here. Can this script be used across multiple versions of dotnet-watch? If not, why have version in the action name at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a similar thought. I guess I could imagine a scenario where the injection occurs from one version of the SDK and dotnet-watch is run from another (particularly with local copies of the SDK like we have with arcade)? But it seems like you'd have to jump through some hoops to make that happen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…message to the client so that it can be logged
30653f9
to
c77a092
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
…message to the client so that it can be logged