Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/db
/ userIsYoung
Function
userIsYoung
packages/db/tests/query/composables.test.ts:124–124 ·
view source on GitHub ↗
({ user }: { user: Ref<User> })
Source
from the content-addressed store, hash-verified
122
eq(user.active, true)
123
124
const
userIsYoung = ({ user }: { user: Ref<User> }) => lt(user.age, 25)
125
126
// Use the predicates in a query
127
const
liveCollection = createLiveQueryCollection({
Callers
1
composables.test.ts
File · 0.85
Calls
1
lt
Function · 0.70
Tested by
no test coverage detected