diff --git a/src/metrics/tracked-map.js b/src/metrics/tracked-map.js index c63503f4..d37587a6 100644 --- a/src/metrics/tracked-map.js +++ b/src/metrics/tracked-map.js @@ -38,6 +38,12 @@ class TrackedMap extends Map { this._metrics.updateComponentMetric(this._component, this._name, this.size) return deleted } + + clear () { + super.clear() + + this._metrics.updateComponentMetric(this._component, this._name, this.size) + } } /**