We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ember/no-computed-properties-in-native-classes
1 parent 9d0d6b0 commit f0423cdCopy full SHA for f0423cd
tests/dummy/app/controllers/catalog.js
@@ -1,7 +1,6 @@
1
import Controller from '@ember/controller';
2
import { A } from '@ember/array';
3
import { action } from '@ember/object';
4
-import { readOnly } from '@ember/object/computed';
5
import { later, cancel } from '@ember/runloop';
6
import { inject as service } from '@ember/service';
7
import { faker } from '@faker-js/faker';
@@ -594,7 +593,9 @@ export default class CatalogController extends Controller {
594
593
// Tabs
595
tabsSelectedTab = 0;
596
@service router;
597
- @readOnly('router.currentRouteName') tabsCurrentRouteName;
+ get tabsCurrentRouteName() {
+ return this.router.currentRouteName;
598
+ }
599
600
// Toast
601
toastDuration = 60000;
0 commit comments