@anfenn/zync 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Unopinionated, bullet-proof, offline-first sync middleware for Zustand.
|
|
|
16
16
|
- Client records will have a `_localId` field which is stable and never sent to the server. It is ideal for use as a key in JSX. The provided helper function `nextLocalId()` returns a UUID, but you could use any unique value
|
|
17
17
|
- Server records must have:
|
|
18
18
|
- `id`: Server assigned unique identifier (any datatype)
|
|
19
|
-
- `updated_at`: Server assigned (db trigger or api layer). The client will never send this as the client clock is unlikely to be in sync with the server, so is never used for change detection
|
|
19
|
+
- `updated_at`: Server assigned **_millisecond_** timestamp (db trigger or api layer). The client will never send this as the client clock is unlikely to be in sync with the server, so is never used for change detection. If it has a higher precision than millisecond, like PostgreSQL's microsecond timestampz, updates could be ignored.
|
|
20
20
|
- `deleted`: Boolean, used for soft deletes, to allow other clients to download deleted records to keep their local records in sync
|
|
21
21
|
|
|
22
22
|
## Quickstart
|