@b-jones-rfd/sp-rest-connect - v5.1.1
    Preparing search index...

    Interface ConnectionContext

    Per-site state shared by write actions: the managed request digest and the entity-type lookup cache. createSiteConnection makes one and hands it to every action it creates; standalone factories create their own unless you pass one, so share a context to share the caches:

    const ctx = createConnectionContext(options)
    const add = addListItem(options, ctx)
    const update = updateListItem(options, ctx)
    interface ConnectionContext {
        digests: DigestCache;
        entityTypes: EntityTypeCache;
    }
    Index
    digests: DigestCache
    entityTypes: EntityTypeCache