feat: move from life cycle to data or watcher
- remove from created / mounted - initialize component services in data - use immediate watcher where appropriate - deep watch for route changes
This commit is contained in:

committed by
kolaente

parent
ebeca48be4
commit
f51371bbe0
@ -30,7 +30,7 @@ export default {
|
||||
name: 'task-subscription',
|
||||
data() {
|
||||
return {
|
||||
subscriptionService: SubscriptionService,
|
||||
subscriptionService: new SubscriptionService(),
|
||||
}
|
||||
},
|
||||
props: {
|
||||
@ -49,9 +49,6 @@ export default {
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.subscriptionService = new SubscriptionService()
|
||||
},
|
||||
computed: {
|
||||
tooltipText() {
|
||||
if (this.disabled) {
|
||||
|
Reference in New Issue
Block a user