From 7b7f4783a6d77c2f3c30d78dc20f699b791c2756 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 30 Mar 2019 14:38:22 +0100 Subject: [PATCH] always fire route updates in dev mode --- src/gatsby-browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gatsby-browser.js b/src/gatsby-browser.js index 7bb03ff..2d129c7 100644 --- a/src/gatsby-browser.js +++ b/src/gatsby-browser.js @@ -15,7 +15,7 @@ function getDuration() { } exports.onRouteUpdate = ({ location, prevLocation }) => { - if (process.env.NODE_ENV === 'production' && typeof _paq !== 'undefined') { + if (process.env.NODE_ENV === 'production' && typeof _paq !== 'undefined' || window.dev === true) { window._paq = window._paq || [] window.dev = window.dev || null