Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 586 Bytes

no-tracked.md

File metadata and controls

19 lines (12 loc) · 586 Bytes

Indicate the use of @tracked (ember-observer/no-tracked)

Don't use @tracked when supporting Ember < 3.13

Rule name: no-tracked

Octane is awesome and we all want to use the best-new-stuff NOW! So why use this rule? @tracked is not supported in Ember < 3.13 and there is no polyfill. For now, if your addon wants to do the responsible thing and support all supported Embers, you need to avoid @tracked.

Examples

Examples of incorrect code for this rule:

  import { tracked } from '@glimmer/tracking';