Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.08 KB

File metadata and controls

45 lines (31 loc) · 1.08 KB

ember/template-no-at-ember-render-modifiers

💼 This rule is enabled in the following configs: strict-gjs, strict-gts.

Disallows usage of modifiers from @ember/render-modifiers.

Rule Details

The modifiers from @ember/render-modifiers ({{did-insert}}, {{did-update}}, {{will-destroy}}) should be replaced with alternatives from ember-render-helpers or other modern approaches.

Examples

Examples of incorrect code for this rule:

<template>
  <div {{did-insert this.setup}}></div>
</template>
<template>
  <div {{did-update this.update}}></div>
</template>
<template>
  <div {{will-destroy this.cleanup}}></div>
</template>

Examples of correct code for this rule:

<template>
  <div {{on "click" this.handleClick}}></div>
</template>

References