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

    Function useDocHandle

    • get a DocHandle from an AutomergeUrl as an async memo.

      when the document is already in the repo you get its handle straight away. otherwise the memo is pending until it's found: reading it suspends to the nearest <Loading>, and a document that can't be found errors to the nearest <Errored>. it's undefined when there's no url.

      Type Parameters

      • T

      Parameters

      Returns Accessor<DocHandle<T> | undefined>