From 656e8c2c77400d1ffe6233b9f1e5d5638c701cfa Mon Sep 17 00:00:00 2001 From: "Michael \"Z\" Goddard" Date: Thu, 21 Mar 2019 14:57:22 -0400 Subject: [PATCH] render only new toolbox xmls --- src/containers/blocks.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/containers/blocks.jsx b/src/containers/blocks.jsx index ecb998ea4..7cfb62fb6 100644 --- a/src/containers/blocks.jsx +++ b/src/containers/blocks.jsx @@ -199,8 +199,11 @@ class Blocks extends React.Component { const categoryId = this.workspace.toolbox_.getSelectedCategoryId(); const offset = this.workspace.toolbox_.getCategoryScrollOffset(); - this.workspace.updateToolbox(this.props.toolboxXML); - this._renderedToolboxXML = this.props.toolboxXML; + + if (this._renderedToolboxXML !== this.props.toolboxXML) { + this.workspace.updateToolbox(this.props.toolboxXML); + this._renderedToolboxXML = this.props.toolboxXML; + } // In order to catch any changes that mutate the toolbox during "normal runtime" // (variable changes/etc), re-enable toolbox refresh.