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

challenge 52 big signal performance #904

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tomalaforge
Copy link
Owner

No description provided.

@tomalaforge tomalaforge added the challenge-creation contributing on the creation of a new challenge label May 22, 2024
@jdegand
Copy link
Contributor

jdegand commented May 31, 2024

For this challenge, you can imagine a large-scale application where you use a service to save and retrieve your user state at any time within the application.

The problem is that updating a single user property updates the entire application.

I added the `CDFlashingDirective` to visualize when one component is rendering.

## Statement

With signals, you can now be more fine-grained in what the UI is rendering. The goal of this challenge is to understand why everything is re-rendering and to refactor the application to be more performant.

I corrected the typos.

Constraints? Without any, there should be some interesting solutions. It might be possible to solve this challenge by breaking the best practice of always returning a new object inside update. If you mutate the object, change detection should not run.

You can add provideZoneChangeDetection({ eventCoalescing: true }) in app.config to providers array for Angular 18.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
challenge-creation contributing on the creation of a new challenge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants