MAIDR Documentation - v3.69.0
    Preparing search index...

    Function cloneMaidrData

    • Creates a deep copy of a Maidr config that is safe to hand to the model layer (which takes ownership of, and may mutate, the data arrays).

      structuredClone cannot clone functions, so the optional onNavigate callback is peeled off, the serializable payload is cloned, and the callback is re-attached.

      Parameters

      • maidr: Maidr

        The Maidr config to clone

      Returns Maidr

      A deep copy sharing only the onNavigate function reference