@knotx/react 0.5.0 → 0.5.1
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.
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -118,7 +118,7 @@ function useDataUpdate(engineRef, { nodes, edges, initRef }) {
|
|
|
118
118
|
const engine = engineRef.current;
|
|
119
119
|
if (
|
|
120
120
|
// 未初始化完成
|
|
121
|
-
!initRef.current || !(engine == null ? void 0 : engine.nodesManager.
|
|
121
|
+
!initRef.current || !(engine == null ? void 0 : engine.nodesManager.isInit)
|
|
122
122
|
) {
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
@@ -131,7 +131,7 @@ function useDataUpdate(engineRef, { nodes, edges, initRef }) {
|
|
|
131
131
|
const engine = engineRef.current;
|
|
132
132
|
if (
|
|
133
133
|
// 未初始化完成
|
|
134
|
-
!initRef.current || !(engine == null ? void 0 : engine.edgesManager.
|
|
134
|
+
!initRef.current || !(engine == null ? void 0 : engine.edgesManager.isInit)
|
|
135
135
|
) {
|
|
136
136
|
return;
|
|
137
137
|
}
|
package/dist/index.js
CHANGED
|
@@ -116,7 +116,7 @@ function useDataUpdate(engineRef, { nodes, edges, initRef }) {
|
|
|
116
116
|
const engine = engineRef.current;
|
|
117
117
|
if (
|
|
118
118
|
// 未初始化完成
|
|
119
|
-
!initRef.current || !(engine == null ? void 0 : engine.nodesManager.
|
|
119
|
+
!initRef.current || !(engine == null ? void 0 : engine.nodesManager.isInit)
|
|
120
120
|
) {
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
@@ -129,7 +129,7 @@ function useDataUpdate(engineRef, { nodes, edges, initRef }) {
|
|
|
129
129
|
const engine = engineRef.current;
|
|
130
130
|
if (
|
|
131
131
|
// 未初始化完成
|
|
132
|
-
!initRef.current || !(engine == null ? void 0 : engine.edgesManager.
|
|
132
|
+
!initRef.current || !(engine == null ? void 0 : engine.edgesManager.isInit)
|
|
133
133
|
) {
|
|
134
134
|
return;
|
|
135
135
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knotx/react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "React for Knotx",
|
|
5
5
|
"author": "boenfu",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"rxjs": "^7.8.1",
|
|
36
|
-
"@knotx/core": "0.5.
|
|
37
|
-
"@knotx/jsx": "0.5.
|
|
38
|
-
"@knotx/plugins-base-render": "0.5.
|
|
36
|
+
"@knotx/core": "0.5.1",
|
|
37
|
+
"@knotx/jsx": "0.5.1",
|
|
38
|
+
"@knotx/plugins-base-render": "0.5.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/react": "^17.0.0",
|
|
42
42
|
"@types/react-dom": "^17.0.0",
|
|
43
43
|
"react": "^17.0.0",
|
|
44
44
|
"react-dom": "^17.0.0",
|
|
45
|
-
"@knotx/build-config": "0.5.
|
|
46
|
-
"@knotx/eslint-config": "0.5.
|
|
47
|
-
"@knotx/jsx": "0.5.
|
|
48
|
-
"@knotx/typescript-config": "0.5.
|
|
45
|
+
"@knotx/build-config": "0.5.1",
|
|
46
|
+
"@knotx/eslint-config": "0.5.1",
|
|
47
|
+
"@knotx/jsx": "0.5.1",
|
|
48
|
+
"@knotx/typescript-config": "0.5.1"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "unbuild",
|