Commit 44c7aa44 authored by Tim Neutkens's avatar Tim Neutkens

Make sure _document doesn’t reload the page when switching pages

parent 3a6fee2a
...@@ -193,7 +193,7 @@ export default class HotReloader { ...@@ -193,7 +193,7 @@ export default class HotReloader {
// This means `/_app` is most likely included in the list. // This means `/_app` is most likely included in the list.
// We filter it out because `/_app` will be re-rendered with the page // We filter it out because `/_app` will be re-rendered with the page
if (changedPageRoutes.length > 1) { if (changedPageRoutes.length > 1) {
changedPageRoutes = changedPageRoutes.filter((route) => route !== '/_app') changedPageRoutes = changedPageRoutes.filter((route) => route !== '/_app' && route !== '/_document')
} }
for (const changedPageRoute of changedPageRoutes) { for (const changedPageRoute of changedPageRoutes) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment