Skip to content

Commit 3594e45

Browse files
committed
fix iterator methods on useSubmissions
1 parent 91d9723 commit 3594e45

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/good-items-sparkle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/router": patch
3+
---
4+
5+
fix iterator methods on useSubmissions

src/data/action.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ export function useSubmissions<T extends Array<any>, U>(
3131
if (property === $TRACK) return subs();
3232
if (property === "pending") return subs().some(sub => !sub.result);
3333
return subs()[property as any];
34+
},
35+
has(_, property) {
36+
return property in subs();
3437
}
3538
});
3639
}

0 commit comments

Comments
 (0)