@gtkx/react 0.1.51 → 0.1.52
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/batch.js +8 -3
- package/package.json +3 -3
package/dist/batch.js
CHANGED
|
@@ -5,10 +5,15 @@ export const beginCommit = () => {
|
|
|
5
5
|
};
|
|
6
6
|
export const endCommit = () => {
|
|
7
7
|
inCommit = false;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
if (pendingFlushes.size > 0) {
|
|
9
|
+
const callbacks = [...pendingFlushes];
|
|
10
|
+
pendingFlushes.clear();
|
|
11
|
+
queueMicrotask(() => {
|
|
12
|
+
for (const callback of callbacks) {
|
|
13
|
+
callback();
|
|
14
|
+
}
|
|
15
|
+
});
|
|
10
16
|
}
|
|
11
|
-
pendingFlushes.clear();
|
|
12
17
|
};
|
|
13
18
|
export const scheduleFlush = (callback) => {
|
|
14
19
|
if (inCommit) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gtkx/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.52",
|
|
4
4
|
"description": "Build GTK4 desktop applications with React and TypeScript",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gtk",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"react-reconciler": "0.33.0",
|
|
39
|
-
"@gtkx/ffi": "0.1.
|
|
39
|
+
"@gtkx/ffi": "0.1.52"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@gtkx/gir": "0.1.
|
|
42
|
+
"@gtkx/gir": "0.1.52"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": "^19"
|