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

    Function autoproduce

    • convert automerge patches to a draft function for a solid store setter.

      handle.on("change", payload => setStore(autoproduce(payload)))
      

      Type Parameters

      • T

      Parameters

      Returns (doc: T) => void

      a function that applies the patches to a draft, like the ones solid store setters pass you