Arnaud Deman
unread,Apr 13, 2021, 9:53:57 AM4/13/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Angular and AngularJS discussion
Hello,
What would be the correct way to use ChangeDetectionStrategy.OnPush with a component that uses the ngrx store like in this example:
@Component ({
...
changeDetection: ChangeDetectionStrategy.OnPush
})
export class MyComponent implements OnInit {
render $: Observable <boolean>;
(...)
ngOnInit () {
render $ = this._store.pipe (select (getRender));
}
}
Should I use ChangeDetectorRef to manually refresh the component, use a wrapper component or something else?
Thanks,
Arnaud.