ilha 0.3.0 → 0.3.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.js +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -225,10 +225,6 @@ function buildDerivedSignals(entries, state, input, derivedSnapshot) {
|
|
|
225
225
|
let ac = new AbortController();
|
|
226
226
|
let skipFirst = derivedSnapshot != null && entry.key in derivedSnapshot;
|
|
227
227
|
const stopEffect = effect(() => {
|
|
228
|
-
if (skipFirst) {
|
|
229
|
-
skipFirst = false;
|
|
230
|
-
return;
|
|
231
|
-
}
|
|
232
228
|
ac.abort();
|
|
233
229
|
ac = new AbortController();
|
|
234
230
|
const currentAc = ac;
|
|
@@ -237,6 +233,11 @@ function buildDerivedSignals(entries, state, input, derivedSnapshot) {
|
|
|
237
233
|
input,
|
|
238
234
|
signal: currentAc.signal
|
|
239
235
|
});
|
|
236
|
+
if (skipFirst) {
|
|
237
|
+
skipFirst = false;
|
|
238
|
+
if (result instanceof Promise) result.catch(() => {});
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
240
241
|
if (!(result instanceof Promise)) {
|
|
241
242
|
const prevSub = setActiveSub(void 0);
|
|
242
243
|
env({
|