react-blockly-component
Advanced tools
+4
-0
@@ -0,1 +1,5 @@ | ||
| # Version 3.0.2 - May 5, 2018 | ||
| * Fix a logic error in BlocklyEditor's componentDidUpdate (thanks @prabak!) | ||
| # Version 3.0.1 - January 22, 2018 | ||
@@ -2,0 +6,0 @@ |
@@ -49,3 +49,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
| }, this.componentDidUpdate = prevProps => { | ||
| if (this.props.toolboxBlocks && !Immutable.fromJS(this.props.toolboxBlocks).equals(Immutable.fromJS(prevProps.toolboxBlocks)) || this.props.toolboxCategories && !Immutable.fromJS(this.props.toolboxCategories).equals(Immutable.fromJS(prevProps.toolboxBlocks))) { | ||
| if (this.props.toolboxBlocks && !Immutable.fromJS(this.props.toolboxBlocks).equals(Immutable.fromJS(prevProps.toolboxBlocks)) || this.props.toolboxCategories && !Immutable.fromJS(this.props.toolboxCategories).equals(Immutable.fromJS(prevProps.toolboxCategories))) { | ||
| this.toolboxDidUpdate(); | ||
@@ -52,0 +52,0 @@ } |
+1
-1
| { | ||
| "name": "react-blockly-component", | ||
| "version": "3.0.1", | ||
| "version": "3.0.2", | ||
| "description": "A React wrapper for the Blockly visual programming editor", | ||
@@ -5,0 +5,0 @@ "main": "dist-modules", |
@@ -78,3 +78,3 @@ import React from 'react'; | ||
| this.props.toolboxCategories && | ||
| !Immutable.fromJS(this.props.toolboxCategories).equals(Immutable.fromJS(prevProps.toolboxBlocks)) | ||
| !Immutable.fromJS(this.props.toolboxCategories).equals(Immutable.fromJS(prevProps.toolboxCategories)) | ||
| ) | ||
@@ -81,0 +81,0 @@ ) { |
2279409
0.01%25391
0