* @internal please do not use.
(value: T, options?: DispatchOptions, skipCache = false)
| 755 | * @internal please do not use. |
| 756 | */ |
| 757 | protected updateValueAndCache(value: T, options?: DispatchOptions, skipCache = false): void { |
| 758 | const {cacheReplace}: DispatchOptions = options || {}; |
| 759 | |
| 760 | if (Configuration.ENVIRONMENT.checkImmutability === true) { |
| 761 | deepFreeze(value); |
| 762 | } |
| 763 | |
| 764 | if (!skipCache) { |
| 765 | this.updateCache(value, cacheReplace); |
| 766 | } |
| 767 | |
| 768 | this._value = value; |
| 769 | |
| 770 | if (this.isMuted) { |
| 771 | this.emitOnUnmute = true; |
| 772 | } else { |
| 773 | this.emitOnUnmute = null; |
| 774 | this.emit(); |
| 775 | } |
| 776 | |
| 777 | this.updateValueInPersistentStorage(); |
| 778 | } |
| 779 | |
| 780 | /** |
| 781 | * @internal please do not use. |
nothing calls this directly
no test coverage detected