Skip to content

Commit

Permalink
Ignore serverComponentChanges in pages
Browse files Browse the repository at this point in the history
Slightly different version of vercel#41020 where it does not end up being an unknown event.
  • Loading branch information
timneutkens committed Oct 16, 2022
1 parent 1d37afb commit 2257c86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/next/client/dev/error-overlay/hot-dev-client.js
Expand Up @@ -260,6 +260,10 @@ function processMessage(e) {
)
return handleSuccess()
}
case 'serverComponentChanges': {
// Server component changes don't apply to `pages`.
return
}
default: {
if (customHmrEventHandler) {
customHmrEventHandler(obj)
Expand Down

0 comments on commit 2257c86

Please sign in to comment.