Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 585 Bytes

merges-updates-with-previous-value.md

File metadata and controls

24 lines (22 loc) · 585 Bytes

merges updates with previous value

sequenceDiagram
  LiveTable->>+Supabase: subscribe
  Supabase->>-LiveTable: subscription active
  LiveTable->>+Supabase: get snapshot
  Supabase-->>LiveTable: UPDATE {"id":1,"created_at":"1","updated_at":"3","type":"vehicle","color":"red"}
  Supabase->>-LiveTable: snaphot: [{"id":1,"created_at":"1","updated_at":"2","type":"vehicle","name":"Bicycle","color":"black"}]
Loading

replica

[
  {
    "id": 1,
    "created_at": "1",
    "updated_at": "3",
    "type": "vehicle",
    "name": "Bicycle",
    "color": "red"
  }
]