Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function Calls in HTML Templates #188

Open
meisekimiu opened this issue Mar 13, 2023 · 0 comments
Open

Function Calls in HTML Templates #188

meisekimiu opened this issue Mar 13, 2023 · 0 comments

Comments

@meisekimiu
Copy link
Member

Angular's change detection causes a component to rerender if a function or method is called inside of it. This means that any components that are calling functions to generate values are being rerendered every single frame, which is not good for performance and can cause other issues (such as reporting several thousand copies of the same error to Sentry). Note that this does not apply to events/outputs where a method is passed in as a callback.

This currently affects several components in web-app. Let's change this, and make new components not call methods inside the templates, unless they're made as Pipes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant