Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jan 3, 2024
1 parent 00a94b2 commit b1bbdb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function createViteRuntime(
new ESModulesRunner(),
)

hmrConnector?.onTrigger((payload) => handleHMRUpdate(client, payload))
hmrConnector?.onUpdate((payload) => handleHMRUpdate(client, payload))

return client
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class ServerHMRConnector implements HMRConnection {
buffer.forEach((message) => this.emitMessage(message))
}

onTrigger(handler: (payload: HMRPayload) => void): () => void {
onUpdate(handler: (payload: HMRPayload) => void): () => void {
this._sendCb.push(handler)
return () => {
this._sendCb = this._sendCb.filter((cb) => cb !== handler)
Expand Down

0 comments on commit b1bbdb1

Please sign in to comment.