remove debug comment
This commit is contained in:
parent
2ce2580e8e
commit
2b851edb02
@ -58,12 +58,6 @@ export default function MyApp ({ Component, pageProps: { ...props } }) {
|
|||||||
// this nodata var will get passed to the server on back/foward and
|
// this nodata var will get passed to the server on back/foward and
|
||||||
// 1. prevent data from reloading and 2. perserve scroll
|
// 1. prevent data from reloading and 2. perserve scroll
|
||||||
// (2) is not possible while intercepting nav with beforePopState
|
// (2) is not possible while intercepting nav with beforePopState
|
||||||
|
|
||||||
console.log({
|
|
||||||
pathname: router.pathname,
|
|
||||||
query: { ...router.query, nodata: true }
|
|
||||||
}, router.asPath, { ...router.options, shallow: true })
|
|
||||||
|
|
||||||
router.replace({
|
router.replace({
|
||||||
pathname: router.pathname,
|
pathname: router.pathname,
|
||||||
query: { ...router.query, nodata: true }
|
query: { ...router.query, nodata: true }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user