Tanstack DB - Live Queries return zero results sometimes
I have a nested datastructure - a trip can contain segments or days, segments contain days, and days contain activities.
I am trying to render these via live electric sql collections.
When first load my page everything works fine, but when I edit the list of days my activities seemingly disappear
those console logs are from just one "event" - ie me deleting a (separate) day
I'm trying to figure out why this happens, and more generally what the "right" way to use live collections is.
Currently I define the collection of activities for a given day within the component for a day:
this means I only have the activities for this day available. Is this the right way to use
useLiveQuery
?2 Replies
yelping-magentaOP•2d ago
apologies if this isn't the right spot for this question, I couldn't find a dedicated area for DB!
conscious-sapphire•2d ago
<id:browse>
#db & #db-questions 🙂