// not work
const { data: a } = useLiveQuery((q) =>
q.from({ product: productsCollection })
.leftJoin({ tried: createTriedByUserId(user?.id, true) }, ({ tried, product }) => eq(tried.productId, product.id))
)
// work
const { data: a } = useLiveQuery((q) =>
q.from({ tried: createTriedByUserId(user?.id, true) })
.leftJoin({ product: productsCollection }, ({ tried, product }) => eq(tried.productId, product.id))
)
// not work
const { data: a } = useLiveQuery((q) =>
q.from({ product: productsCollection })
.leftJoin({ tried: createTriedByUserId(user?.id, true) }, ({ tried, product }) => eq(tried.productId, product.id))
)
// work
const { data: a } = useLiveQuery((q) =>
q.from({ tried: createTriedByUserId(user?.id, true) })
.leftJoin({ product: productsCollection }, ({ tried, product }) => eq(tried.productId, product.id))
)