@expressive/react 0.35.0 → 0.35.2
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.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -57,7 +57,11 @@ function useLocal(apply, repeat) {
|
|
|
57
57
|
}
|
|
58
58
|
if (!repeat)
|
|
59
59
|
shouldApply = false;
|
|
60
|
-
instance.set()
|
|
60
|
+
const update = instance.set();
|
|
61
|
+
if (update)
|
|
62
|
+
update.then(() => enabled = true);
|
|
63
|
+
else
|
|
64
|
+
enabled = true;
|
|
61
65
|
}
|
|
62
66
|
setContext(instance, (0, import_react.useContext)(Shared));
|
|
63
67
|
(0, import_react.useEffect)(() => {
|
package/dist/index.mjs
CHANGED
|
@@ -30,7 +30,11 @@ function useLocal(apply, repeat) {
|
|
|
30
30
|
}
|
|
31
31
|
if (!repeat)
|
|
32
32
|
shouldApply = false;
|
|
33
|
-
instance.set()
|
|
33
|
+
const update = instance.set();
|
|
34
|
+
if (update)
|
|
35
|
+
update.then(() => enabled = true);
|
|
36
|
+
else
|
|
37
|
+
enabled = true;
|
|
34
38
|
}
|
|
35
39
|
setContext(instance, useContext(Shared));
|
|
36
40
|
useEffect(() => {
|
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"preversion": "npm run test && npm run build"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@expressive/mvc": "^0.35.
|
|
34
|
+
"@expressive/mvc": "^0.35.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": ">=16.8.0 <19.0.0"
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"react": "^18.2.0",
|
|
43
43
|
"react-test-renderer": "^18.2.0"
|
|
44
44
|
},
|
|
45
|
-
"version": "0.35.
|
|
46
|
-
"gitHead": "
|
|
45
|
+
"version": "0.35.2",
|
|
46
|
+
"gitHead": "3ea5cde2819a66601be642a9befd8e4477caa0b8"
|
|
47
47
|
}
|