Skip to content

feat: bind overridden value converters to the target#11018

Merged
NathanWalker merged 2 commits intomainfrom
feat/target-converters
Jan 31, 2026
Merged

feat: bind overridden value converters to the target#11018
NathanWalker merged 2 commits intomainfrom
feat/target-converters

Conversation

@triniwiz
Copy link
Member

When a overridden property valueConverter is called it will now be bound to the target which can be useful for custom views detecting how to handle the incoming value

fontSizeProperty.overrideHandlers({
  name: 'fontSize',
  cssName: 'font-size',
  valueConverter: function (value) {
    if (this && this[isACustomView_]) {
      return value as never;
    }
    // fallback to core conversion
    return parseFloat(value as never);
  },

@nx-cloud
Copy link

nx-cloud bot commented Dec 30, 2025

View your CI Pipeline Execution ↗ for commit 59e3dee

Command Status Duration Result
nx test apps-automated -c=ios ✅ Succeeded 3m 5s View ↗
nx run-many --target=test --configuration=ci --... ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-01-01 18:27:49 UTC

@NathanWalker NathanWalker merged commit 906aba1 into main Jan 31, 2026
7 checks passed
@NathanWalker NathanWalker deleted the feat/target-converters branch January 31, 2026 22:43
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.

3 participants