This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Automerge = require('automerge') | |
function printTopicTree(topic, indent = 2) { | |
let text = '* ' + topic.id | |
for (let i = 0; i < indent; i++) { | |
text = ' ' + text | |
} | |
console.log(text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58c58,68 | |
< await downstream(ctx, async () => { | |
--- | |
> try { | |
> await downstream(ctx, async () => { | |
> ctx.path = prev; | |
> try { | |
> await upstream(); | |
> } finally { | |
> ctx.path = newPath; |