@dschz/solid-flow 0.2.1 → 0.2.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/index.js +2 -1
- package/dist/index/index.jsx +2 -1
- package/package.json +1 -1
package/dist/index/index.js
CHANGED
|
@@ -62,6 +62,7 @@ function createWritableStore(accessor) {
|
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
+
var scheduleIdleCallback = typeof requestIdleCallback === "function" ? requestIdleCallback : (callback) => setTimeout(callback, 0);
|
|
65
66
|
var EdgeLabelRenderer = (props) => {
|
|
66
67
|
const {
|
|
67
68
|
store
|
|
@@ -4312,7 +4313,7 @@ var createSolidFlow = (props) => {
|
|
|
4312
4313
|
return;
|
|
4313
4314
|
}
|
|
4314
4315
|
pendingEntries = updateEntries;
|
|
4315
|
-
|
|
4316
|
+
scheduleIdleCallback(() => {
|
|
4316
4317
|
batch(() => {
|
|
4317
4318
|
const updates = new Map(pendingEntries);
|
|
4318
4319
|
pendingEntries = void 0;
|
package/dist/index/index.jsx
CHANGED
|
@@ -96,6 +96,7 @@ function createWritableStore(accessor) {
|
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
+
var scheduleIdleCallback = typeof requestIdleCallback === "function" ? requestIdleCallback : (callback) => setTimeout(callback, 0);
|
|
99
100
|
|
|
100
101
|
// src/components/graph/edge/EdgeLabelRenderer.tsx
|
|
101
102
|
import { Show } from "solid-js";
|
|
@@ -1790,7 +1791,7 @@ var createSolidFlow = (props) => {
|
|
|
1790
1791
|
return;
|
|
1791
1792
|
}
|
|
1792
1793
|
pendingEntries = updateEntries;
|
|
1793
|
-
|
|
1794
|
+
scheduleIdleCallback(() => {
|
|
1794
1795
|
batch2(() => {
|
|
1795
1796
|
const updates = new Map(pendingEntries);
|
|
1796
1797
|
pendingEntries = void 0;
|
package/package.json
CHANGED