4 ms·
Just a side note - reading https://tanstack.com/db/latest/docs/guides/live-queries#reusable-callback-functions https://tanstack.com/db/latest/docs/guides/live-q
by svieira 1y ago
Just a side note - reading https://tanstack.com/db/latest/docs/guides/live-queries#reusable-callback-functions https://tanstack.com/db/latest/docs/guides/live-queries#reus... I see:
const isHighValueCustomer = (row: { user: User; order: Order }) =>
row.user.active && row.order.amount > 1000
But if I'm understanding the docs correctly on this point, doesn't this have to be:
const isHighValueCustomer = (row: { user: User; order: Order }) =>
and(row.user.active, gt(row.order.amount, 1000))
- samwillis 1y agoYep, that's an error in the docs..