Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/develop/dynamic-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ const writer = bee.makeFeedWriter(topic, pk);
await writer.upload(batchId, upload.reference);
console.log("Feed updated at index 0");

// Brief pause to allow the node to index the feed chunk
await new Promise((r) => setTimeout(r, 1000));

// Read the latest reference from the feed
const reader = bee.makeFeedReader(topic, owner);
const result = await reader.downloadReference();
Expand Down Expand Up @@ -229,6 +232,9 @@ console.log("New content hash:", upload2.reference.toHex());
await writer.upload(batchId, upload2.reference);
console.log("Feed updated at index 1");

// Brief pause to allow the node to index the feed chunk
await new Promise((r) => setTimeout(r, 1000));

// Reading the feed now returns the updated reference
const result2 = await reader.downloadReference();
console.log("Latest reference:", result2.reference.toHex());
Expand Down
Loading