You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Afterward, we create a repository and replicate it locally (we assume coroutine execution):
52
+
Afterward, we create a repository and replicate it locally into a `ReplicatedModel`.
53
+
This data structure automatically synchronizes its content with the remote.
54
+
We can consequently assume that its data is always correct and up-to-date.
55
+
To ensure this, we need to use read and write transactions whenever we interact with the content, e.g. by adding a new child (we assume coroutine execution):
53
56
54
57
[source, kotlin]
55
58
--
56
-
57
59
var rootNode: INode? = null
58
60
// we need to start a read transaction to obtain model content
0 commit comments