• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ArkData Changelog
2
3## cl.kv_store.1 Scenario Change for Cross-Device Automatic Sync of the KV Store
4
5**Access Level**
6
7Public API
8
9**Reason for Change**
10
11The change is made to eliminate invalid data sync across devices.
12
13**Change Impact**
14
15This change is a non-compatible change.
16
17Before the change:
18
19When data is added, deleted, or modified in a KV store with **autoSync** set to **true**, data will be automatically synced to the devices in the same network.
20
21After the change:
22
23When data is added, deleted, or modified in a KV store with **autoSync** set to **true**, data will be automatically synced to the devices in [multi-device collaboration](../../../application-dev/application-models/hop-multi-device-collaboration.md) in the same network.
24
25**Start API Level**
26
279
28
29**Change Since**
30
31OpenHarmony SDK 5.0.0.37
32
33**Key API/Component Changes**
34
35autoSync/distributedKVStore
36
37**Adaptation Guide**
38
39The cross-device automatic sync of KV stores applies only to multi-device collaboration. For details, see [Cross-Device Sync of KV Stores](../../../application-dev/database/data-sync-of-kv-store.md).
40In other cases, set **autoSync** to **false**. Even if **autoSync** is set to **true**, the automatic data sync does not take effect.
41