Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Just a side note - reading 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))


Yep, that's an error in the docs..




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: