Skip to content

BuildBacklinksSnapshotParams.referenceIdentityKeyProvider?

BuildBacklinksSnapshotParams › referenceIdentityKeyProvider?

Type: (reference: Reference) => string

Computes the identity key of a link.

The snapshot remembers it, so editBacklinksSnapshot looks the links up with the same function without being told. When BuildBacklinksSnapshotParams.target was built with a provider, omitting this reuses that one, and passing a different one throws: a snapshot keyed by two functions matches nothing.