We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d0121 commit a94fa53Copy full SHA for a94fa53
1 file changed
packages/kida/README.md
@@ -53,16 +53,14 @@ export const $admins = computed(get => get($users).filter(user => user.isAdmin))
53
54
```tsx
55
// components/admins.ts
56
-import { atIndex, record } from 'kida'
+import { record } from 'kida'
57
import { $admins } from '../stores/admins.js'
58
59
export function Admins() {
60
return ul()(
61
- for$($admins)((i) => {
62
- const $admin = record(atIndex($admins, i))
63
-
64
- return li()($admin.name)
65
- })
+ for$($admins, user => user.id)(
+ $admin => li()(record($admin).name)
+ )
66
)
67
}
68
```
0 commit comments