Comparing version 5.11.0-beta.1 to 5.11.0-beta.2
@@ -270,2 +270,4 @@ 'use strict'; | ||
this.timings.lastUpdateAt = (0, _perf.getNow)(); | ||
var stateUpdateResult = typeof stateUpdate === 'function' ? stateUpdate(this.state) : stateUpdate; | ||
@@ -406,2 +408,3 @@ return this._updateStore(stateUpdateResult, { | ||
_this.postRenderCallback = function (elapsedMs) { | ||
_this.timings.lastRenderAt = (0, _perf.getNow)(); | ||
if (elapsedMs > _this.getConfig('slowThreshold')) { | ||
@@ -408,0 +411,0 @@ var shouldBroadcast = !_this.lastSlowRender || // SHOULD because we've never slow rendered |
@@ -247,2 +247,4 @@ import cuid from 'cuid'; | ||
update(stateUpdate = {}) { | ||
this.timings.lastUpdateAt = getNow(); | ||
const stateUpdateResult = typeof stateUpdate === `function` ? stateUpdate(this.state) : stateUpdate; | ||
@@ -328,2 +330,3 @@ return this._updateStore(stateUpdateResult, { | ||
this.postRenderCallback = (elapsedMs) => { | ||
this.timings.lastRenderAt = getNow(); | ||
if (elapsedMs > this.getConfig(`slowThreshold`)) { | ||
@@ -330,0 +333,0 @@ const shouldBroadcast = |
@@ -182,3 +182,3 @@ // Type definitions for panel | ||
readonly timings: { | ||
readonly timings: Readonly<{ | ||
/** The time in ms that the component constructor ran */ | ||
@@ -190,5 +190,9 @@ createdAt: number; | ||
initializingCompletedAt: number; | ||
/** The time in ms that the last attributeChangedCallback ran */ | ||
/** The time in ms that the last #attributeChangedCallback ran */ | ||
lastAttributeChangedAt: number; | ||
}; | ||
/** The time in ms that the last #update ran */ | ||
lastUpdateAt: number; | ||
/** The time in ms that the last render ran */ | ||
lastRenderAt: number; | ||
}>; | ||
@@ -195,0 +199,0 @@ /** Defines standard component configuration */ |
{ | ||
"name": "panel", | ||
"version": "5.11.0-beta.1", | ||
"version": "5.11.0-beta.2", | ||
"description": "Web Components with Virtual DOM: lightweight composable web apps", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
144580
3305