tre-watch-heads
Observe mutable ssb messages
const WatchHeads =const h =const computed =// pass your ssb client instanceconst head =// head() takes a revisionRoot and returns a mutant-compatible observable// This is how you get the revisionRoot from any ssb message, mutated or notconst revRoot = kvvaluecontentrevisionRoot || kvkey// html will update in realtime whenever we receive a new revision of this particular messagedocumentbody// When the element is removed from the dom, the underlying pull-stream// will be aborted automatically
See Also:
License: ISC