Is use of interval in every component will affect performance of Application ? #225
Unanswered
prashantmaskar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As shown in instructions of this package we are using interval to call untildestroy like below
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
@UntilDestroy()
@component({})
export class InboxComponent {
ngOnInit() {
interval(1000).pipe(untilDestroyed(this)).subscribe();
}
}
Will this affect application performance if we are working on big application?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions