todomvc-swarm
todomvc-swarm copied to clipboard
move to leveldb storage
Using leveldb on client shows race condition that should be investigated
(1) the race is because of the LevelStorage.prototype.isRoot flag. Server-side storage needs "true", client-side cache needs "false". isRoot means "this storage is the root of the replica tree".
(2) Does it work without the timeout?
- Ok, I will test it
- It works, but as far as it thinks that list is empty, it adds new empty item each time you clear client's storage and reload app
isRoot did not solve the problem. Maybe problem in initialization of Vector.