Hi, In fact the async pipe works with the OnPush strategy. Regards, Arnaud.
On Tuesday, 13 April 2021 at 15:53:57 UTC+2 Arnaud Deman wrote: > > 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. -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/angular/213b8686-4309-4243-84c4-b63aa5839043n%40googlegroups.com.