-
Notifications
You must be signed in to change notification settings - Fork 30
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
performance issue #14
Comments
i think it is a better solution : public ngOnInit(): void {
} in this way for child window tick : in only execute tick on parent and on that window and not on all window opened |
That's a fairly complex topic. In my use case, we have state shared between all windows, so the change detection needs to be run in all windows simultaneously. Also note that this largely depends on your state management pattern, we use a redux-like pattern with OnPush change detection in most components, so performance isn't that much impacted for us. Maybe a solution is to add a switch which changes this behavior between the original solution and the one you found. |
@dario-frongillo in the latest commit, I refactored the tick procedure to be contained in a service, if you still have this problem, we might be able to add a flag changing the change detection propagation between the windows now. |
@martin31821 Can you please link the commit change ? |
There you go: 83fbd30 |
@dario-frongillo is this still a problem or did you get around the issue? |
Hi All,
if i open many dialogs i have a performance issue due too many change detection.
Why on init in golden layout component of your lib you use this code
....
in this way for a tick in child window is performed tick on other child windows and also in root.
can you explain better ?
thanks
The text was updated successfully, but these errors were encountered: