@matchlighter/common_library
Advanced tools
Comparing version
@@ -26,2 +26,3 @@ "use strict"; | ||
transitionBlock(id, transaction) { | ||
var _a, _b; | ||
const current_block = this.activeBlock(id); | ||
@@ -31,3 +32,3 @@ transaction(); | ||
if (current_block != new_block) { | ||
this.blockSubscriptions[id](new_block); | ||
(_b = (_a = this.blockSubscriptions)[id]) === null || _b === void 0 ? void 0 : _b.call(_a, new_block); | ||
this.emitter.emit('block_switched', [id]); | ||
@@ -34,0 +35,0 @@ } |
@@ -12,2 +12,3 @@ import React, { PureComponent, memo, useContext, useEffect, useLayoutEffect, useRef } from "react"; | ||
transitionBlock(id, transaction) { | ||
var _a, _b; | ||
const current_block = this.activeBlock(id); | ||
@@ -17,3 +18,3 @@ transaction(); | ||
if (current_block != new_block) { | ||
this.blockSubscriptions[id](new_block); | ||
(_b = (_a = this.blockSubscriptions)[id]) === null || _b === void 0 ? void 0 : _b.call(_a, new_block); | ||
this.emitter.emit('block_switched', [id]); | ||
@@ -20,0 +21,0 @@ } |
{ | ||
"name": "@matchlighter/common_library", | ||
"version": "1.6.17", | ||
"version": "1.6.18", | ||
"description": "Shared Functions, Helpers, Patterns & Utilities for Apps and Libraries", | ||
@@ -5,0 +5,0 @@ "author": "Matchlighter", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
749120
0.03%12880
0.02%