Skip to content

BuildBacklinksSnapshotParams.linkIdentityKeyProvider?

BuildBacklinksSnapshotParams › linkIdentityKeyProvider?

Type: (link: 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.