Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

joined-result-keys-json.md

5 lines553 Bytes

Fix joined live queries that dropped or rejected a row when two source key pairs printed alike, such as (a,b, c) and (a, b,c), or 1 and '1'. Joined result keys are now JSON arrays of the two source keys, with null for a missing side: ["a","b"], [4,1], [4,null]. An infinite numeric key is written as an object, such as [{"number":"Infinity"},1], so it cannot collide with a missing side. Code that looks up joined rows by a hand-built key, such as collection.get('[1,2]'), must use the new format.