Skip to content

Deprecation: paren params

Taylor Hunt edited this page Aug 2, 2019 · 3 revisions

This warning is only displayed for older tags that opted into using the old experimental parentheses tag parameters.

This feature is now fully enabled, but the syntax changed to use |pipes| to avoid conflicting with other language features.

Migrating should be as straightforward as replacing the wrapping parentheses:

<match-media({ portrait, landscape })
  portrait="(orientation: portrait)"
  landscape="(orientation: landscape)"
>

…with wrapping pipes:

<match-media|{ portrait, landscape }|
  portrait="(orientation: portrait)"
  landscape="(orientation: landscape)"
>