2 lines
1.1 KiB
JavaScript
2 lines
1.1 KiB
JavaScript
|
"use strict";(self.webpackChunklite=self.webpackChunklite||[]).push([[2951],{88414:(e,n,t)=>{t.r(n),t.d(n,{NavigationTimingReporter:()=>m});var a=t(96540),r=t(27721),o=t(61538),u=t(47517),i=t(51260),l=t(10131);function m(e){var n=e.to,t=e.from,m=(0,a.useRef)(null),f=(0,o.$L)(),v=(0,i.IF)(),c=(0,r.R)(),p=c.loading,d=c.error,h=!!c.value;return(0,a.useEffect)((function(){if(!p&&!d)if(m.current||n.pathname===t.pathname){if(m.current){var e=m.current.pathname,a=m.current.time;requestAnimationFrame((function(){setTimeout((function(){var t,r,o,i,c=Date.now();m.current=null;var p={to:null!==(t=null===(r=v(n.pathname))||void 0===r?void 0:r.route.name)&&void 0!==t?t:"unknown",from:null!==(o=null===(i=v(e))||void 0===i?void 0:i.route.name)&&void 0!==o?o:"unknown",loggedIn:h};f&&f.reportClientNav(p,new l.JW(a,c)),u.v.debug({duration:c-a,to:n.pathname,toRouteName:p.to,from:e,fromRouteName:p.from,loggedIn:p.loggedIn},"client navigation")}),0)}))}}else m.current={pathname:t.pathname,time:Date.now()},performance.mark("nav-start")}),[n.pathname,t.pathname,p,d,h]),null}}}]);
|
||
|
//# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/reporting.ff22a7a5.chunk.js.map
|