const collection = createCollection<{ id: string }>({
sync: {
sync({ begin, commit }) {
begin()
commit()
},
},
getKey: (item) => item.id,
startSync: true,
})
const liveQuery = createLiveQueryCollection({
query: (q) => q.from({ collection }),
startSync: true,
})
liveQuery.isReady() is true even though collection is not ready yet