Solid Automerge - v3.0.0
    Preparing search index...

    Function createDocumentProjection

    • get a fine-grained live view of a document from a handle. works with useDocHandle.

      the projection is a solid store, and it's the same store for its whole life: when the handle changes, the new document is reconciled into it. read it like any object (doc.items[1].title) and only what you read is tracked. when there's no handle, it's empty. when the handle is still loading, reading it suspends (put a <Loading> around it).

      Type Parameters

      • T extends object

      Parameters

      Returns Doc<T>