In an observation, the createdBy field does not reference a 'deviceId'. In otherwords, we cannot simply determine if a user created an observation by checking if createdBy === deviceId. We need to convert the createdBy field using $createdByToDeviceId
To Do
[x] In deviceInfo create useCreatedByToDeviceId hook as a tanstack wrapper
In an observation, the
createdBy
field does not reference a 'deviceId'. In otherwords, we cannot simply determine if a user created an observation by checking ifcreatedBy === deviceId
. We need to convert thecreatedBy
field using $createdByToDeviceIdTo Do
useCreatedByToDeviceId
hook as a tanstack wrapperisPending
of bothuseDeviceInfo
anduseCreatedByToDeviceId
isMine && styles.syncedObservation
not!isMine