@yuntijs/ui 1.1.0-beta.5 → 1.1.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -159,6 +159,10 @@ export var useEditor = function useEditor(type, props) {
159
159
  if (!containerRef.current) {
160
160
  return;
161
161
  }
162
+ if (editorRef.current) {
163
+ editorRef.current.dispose();
164
+ decomposeRef.current = false;
165
+ }
162
166
  var editor;
163
167
  if (typeRef.current === 'single') {
164
168
  var _ref, _valueRef$current;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuntijs/ui",
3
- "version": "1.1.0-beta.5",
3
+ "version": "1.1.0-beta.6",
4
4
  "description": "☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps",
5
5
  "keywords": [
6
6
  "yuntijs",