---
title: "Comment by Focus 100 on \"Building a Local-First Task Manager with Next.js and React — Lessons from Planow\" | Hashnode"
description: "Nice write-up, especially the source: 'local' marker. Three things that tend to bite this exact design later, in case they're useful: Deletes. With an upsert-on"
url: "https://hashnode.com/posts/building-a-local-first-task-manager-with-next-js-and-react-lessons-from-planow/69f244f56e0124c05e41bb21/comment/6b02570d497dc1a4e3e5035b"
---

[Discussion](https://hashnode.com/posts/building-a-local-first-task-manager-with-next-js-and-react-lessons-from-planow/69f244f56e0124c05e41bb21)

Comment [Building a Local-First Task Manager with Next.js and React — Lessons from Planow](https://hashnode.com/posts/building-a-local-first-task-manager-with-next-js-and-react-lessons-from-planow/69f244f56e0124c05e41bb21)

[Focus 100](https://hashnode.com/@focus100)

[3d ago](https://hashnode.com/posts/building-a-local-first-task-manager-with-next-js-and-react-lessons-from-planow/69f244f56e0124c05e41bb21/comment/6b02570d497dc1a4e3e5035b)

Nice write-up, especially the source: 'local' marker. Three things that tend to bite this exact design later, in case they're useful:

1.  **Deletes.** With an upsert-only sync RPC, a task deleted on one device comes back the next time another device pushes its local copy. A soft-delete column (deleted\_at) that syncs like any other field, plus a cleanup job later, avoids the "zombie tasks" problem.
2.  **Row-level last-write-wins.** If I tick a task done on my phone and rename it on my laptop before they sync, one of those edits is lost, because the whole row wins or loses. Per-field updated\_at (or at least a separate timestamp for completed) fixes the most common case cheaply.
3.  **Client clocks.** updated\_at comes from the device, so a phone with a wrong clock can win every conflict. Setting the timestamp on the server inside the RPC, or using a simple logical counter per task, makes the comparison reliable.

For position, fractional indexing (a string key between its neighbours) means a drag only writes one row instead of renumbering the column.

Disclosure: I build Focus 100, which is also local-first (tasks on the device, sync optional and end-to-end encrypted), so I've been thinking about the same tradeoffs.
