Skip to content

Allow to customize link template separately for each link instead of only based on its link type IRI#84

Merged
AlexeyMz merged 1 commit into
masterfrom
resolve-link-template-by-link-itself
Nov 1, 2025
Merged

Allow to customize link template separately for each link instead of only based on its link type IRI#84
AlexeyMz merged 1 commit into
masterfrom
resolve-link-template-by-link-itself

Conversation

@AlexeyMz
Copy link
Copy Markdown
Member

  • linkTemplateResolver prop in Canvas now receives a second Link argument to be able to return a different link template for a specific link;
  • Link templates and markers are now longer cached based on link type IRI, so it is recommended to always return a stable template and marker object for the same link to avoid unnecessary marker updates;
  • LinkTemplate.markerTarget will no longer fallback to default marker target if only some styles are overriden, and instead require an explicit {...Reactodia.DefaultLinkTemplate.markerTarget} in that case;

…only based on its link type IRI:

* `linkTemplateResolver` prop in `Canvas` now receives a second `Link` argument to be able to return
a different link template for a specific link;
* Link templates and markers are now longer cached based on link type IRI, so it is recommended to
always return a stable template and marker object for the same link to avoid unnecessary marker updates;
* `LinkTemplate.markerTarget` will no longer fallback to default marker target if only some styles
are overriden, and instead require an explicit `{...Reactodia.DefaultLinkTemplate.markerTarget}` in that case;
@AlexeyMz AlexeyMz force-pushed the resolve-link-template-by-link-itself branch from e255ac4 to 6882618 Compare November 1, 2025 15:26
@AlexeyMz AlexeyMz merged commit dbb6f0d into master Nov 1, 2025
4 checks passed
@AlexeyMz AlexeyMz deleted the resolve-link-template-by-link-itself branch November 1, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant