@dnd-kit/state 0.1.21 → 0.2.0-beta-20251026132120
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -207,7 +207,7 @@ function enumerable(enumerable2 = true) {
|
|
|
207
207
|
// src/effects.ts
|
|
208
208
|
var import_signals_core3 = require("@preact/signals-core");
|
|
209
209
|
function effects(...entries) {
|
|
210
|
-
const effects2 = entries.map(import_signals_core3.effect);
|
|
210
|
+
const effects2 = entries.map((fn) => (0, import_signals_core3.effect)(fn));
|
|
211
211
|
return () => effects2.forEach((cleanup) => cleanup());
|
|
212
212
|
}
|
|
213
213
|
|
package/dist/index.mjs
CHANGED
|
@@ -182,7 +182,7 @@ function enumerable(enumerable2 = true) {
|
|
|
182
182
|
// src/effects.ts
|
|
183
183
|
import { effect } from "@preact/signals-core";
|
|
184
184
|
function effects(...entries) {
|
|
185
|
-
const effects2 = entries.map(effect);
|
|
185
|
+
const effects2 = entries.map((fn) => effect(fn));
|
|
186
186
|
return () => effects2.forEach((cleanup) => cleanup());
|
|
187
187
|
}
|
|
188
188
|
|