g3-toolkit API Reference
    Preparing search index...

    Function mergeSequenceActiveIds

    • Merge the sequence's computed set into the store's active list, touching ONLY the ids the sequence owns: every foreign active id keeps its place, every owned id is dropped and then re-added exactly as target says. Exported for tests and for hosts that drive the store from a non-React loop; the hook applies this on each index change.

      Parameters

      • currentActiveIds: readonly string[]
      • ownedIds: readonly string[]
      • targetActiveIds: readonly string[]

      Returns string[]